<p>I am using Argo and have a question about the workflow of workflows example. (<a href="https://github.com/argoproj/argo-workflows/blob/master/examples/workflow-of-workflows.yaml" rel="nofollow noreferrer">https://github.com/argoproj/argo-workflows/blob/master/examples/workflow-of-workflows.yaml</a>)</p>
<p>UPDATED YET AGAIN</p>
<p>As pointed out below, it is a task that I need to view.  So my question is now - How do I view the logs from a task?</p>
<p>My workflow completes without error, but does not produce the expected output.  I would like to look at the logs of one of the containers within one of the workflows within the overall workflow, but I cannot get the syntax right I am using the following convention to get the logs from the relevant pod.</p>
<pre><code>argo logs -n argo wf-name pod-name
</code></pre>
<p>and getting:</p>
<pre><code>workflow-of-workflows-k8fm5-3824346685: 2021-04-05T17:55:43.360917900Z time=&quot;2021-04-05T17:55:43.360Z&quot; level=info msg=&quot;Starting Workflow Executor&quot; executorType= version=&quot;{untagged 2021-04-05T17:09:35Z 79eb50b42e948466f82865b8a79756b57f9b66d9 untagged clean go1.15.7 gc linux/amd64}&quot;
workflow-of-workflows-k8fm5-3824346685: 2021-04-05T17:55:43.362737800Z time=&quot;2021-04-05T17:55:43.362Z&quot; level=info msg=&quot;Creating a docker executor&quot;
workflow-of-workflows-k8fm5-3824346685: 2021-04-05T17:55:43.362815200Z time=&quot;2021-04-05T17:55:43.362Z&quot; level=info msg=&quot;Executor (version: untagged, build_date: 2021-04-05T17:09:35Z) initialized (pod: argo/workflow-of-workflows-k8fm5-3824346685) with template:\n{\&quot;name\&quot;:\&quot;run\&quot;,\&quot;inputs\&quot;:{\&quot;parameters\&quot;:[{\&quot;name\&quot;:\&quot;runTemplate\&quot;,\&quot;value\&quot;:\&quot;demo1run.yaml\&quot;}]},\&quot;outputs\&quot;:{},\&quot;metadata\&quot;:{},\&quot;resource\&quot;:{\&quot;action\&quot;:\&quot;create\&quot;,\&quot;manifest\&quot;:\&quot;# Example of using a hard-wired artifact location from a HTTP URL.\\napiVersion: argoproj.io/v1alpha1\\nkind: Workflow\\nmetadata:\\n  generateName: message-passing-1-\\n  namespace: argo\\nspec:\\n  serviceAccountName: argo\\n  entrypoint: entrypoint\\n\\n  templates:\\n\\n  - name: echo\\n    container:\\n      image: weilidma/curl:0.4\\n      command:\\n        - \\\&quot;/bin/bash\\\&quot;\\n        - \\\&quot;-c\\\&quot;\\n      args:\\n        - \\\&quot;cat /mnt/raw/raw1.json  \\u0026\\u0026 exit\\\&quot;\\n      volumeMounts:\\n        - name: raw-p1-vol\\n          mountPath: /mnt/raw\\n        - name: log-p1-vol\\n          mountPath: /mnt/logs/\\n\\n  - name: process1\\n    container:\\n      image: weilidma/curl:0.4\\n      command: \\n        - \\\&quot;/bin/bash\\\&quot;\\n        - \\\&quot;-c\\\&quot;\\n      args: \\n        - \\\&quot;jq \\\\u0027[.data[].Platform |= test(\\\\u0022Healy\\\\u0022) | .[][] | select(.Platform == true) | {survey: .Survey, url: .\\\\u0022Data Access\\\\u0022}]\\\\u0027 /mnt/raw/raw1.json \\u003e /mnt/processed/filtered1.json \\u0026\\u0026 exit\\\&quot;\\n      volumeMounts:\\n        - name: raw-p1-vol\\n          mountPath: /mnt/raw/\\n        - name: processed-p1-vol\\n          mountPath: /mnt/processed/\\n        - name: log-p1-vol\\n          mountPath: /mnt/logs/\\n\\n  - name: process2\\n    container:\\n      image: weilidma/curl:0.4\\n      command: \\n        - \\\&quot;/bin/bash\\\&quot;\\n        - \\\&quot;-c\\\&quot;\\n      args: \\n        - \\\&quot;jq \\\\u0027[.data[].Platform |= test(\\\\u0022Healy\\\\u0022) | .[][] | select(.Platform == true) | {survey: .Survey, url: .\\\\u0022Data Access\\\\u0022}]\\\\u0027 /mnt/raw/raw2.json \\u003e /mnt/processed/filtered2.json \\u0026\\u0026 exit\\\&quot;\\n      volumeMounts:\\n        - name: raw-p2-vol\\n          mountPath: /mnt/raw/\\n        - name: processed-p2-vol\\n          mountPath: /mnt/processed/\\n        - name: log-p2-vol\\n          mountPath: /mnt/logs/\\n\\n  - name: join\\n    container:\\n      image: weilidma/curl:0.4\\n      command: \\n        - \\\&quot;/bin/bash\\\&quot;\\n        - \\\&quot;-c\\\&quot;\\n      args: \\n        - \\\&quot;jq -n --slurpfile f1 /mnt/processed1/filtered1.json --slurpfile f2 /mnt/processed2/filtered2.json -f .jq/join.jq --arg field \\\\u0022survey\\\\u0022 \\u003e /mnt/processed1/output.json \\u0026\\u0026 exit\\\&quot;\\n      volumeMounts:\\n        - name: processed-p1-vol\\n          mountPath: /mnt/processed1/\\n        - name: processed-p2-vol\\n          mountPath: /mnt/processed2/\\n        - name: log-p1-vol\\n          mountPath: /mnt/logs1/\\n        - name: log-p2-vol\\n          mountPath: /mnt/logs2/\\n\\n  - name: egress\\n    inputs:\\n      parameters:\\n      - name: ipaddr\\n    container:\\n      image: weilidma/curl:0.4\\n      command: \\n        - \\\&quot;/bin/bash\\\&quot;\\n        - \\\&quot;-c\\\&quot;\\n      args: \\n        - \\\&quot;cat /mnt/processed/output.json \\u0026\\u0026 exit\\\&quot;\\n      volumeMounts:\\n        - name: processed-p1-vol\\n          mountPath: /mnt/processed/\\n        - name: log-p1-vol\\n          mountPath: /mnt/logs/\\n\\n  - dag:\\n      tasks:\\n      - name: echo\\n        template: echo\\n        dependencies:\\n      - name: p1\\n        template: process1\\n        dependencies:\\n\\n      - name: p2\\n        template: process2\\n        dependencies:\\n\\n      - name: j\\n        template: join\\n        dependencies:\\n        - p1\\n        - p2\\n\\n      - name: e\\n        template: egress\\n        arguments:\\n          parameters: \\n            - name: ipaddr \\n              value: 'https://192.241.129.100'\\n        dependencies:\\n        - j\\n\\n    name: entrypoint\\n\&quot;}}&quot;
workflow-of-workflows-k8fm5-3824346685: 2021-04-05T17:55:43.362847900Z time=&quot;2021-04-05T17:55:43.362Z&quot; level=info msg=&quot;Loading manifest to /tmp/manifest.yaml&quot;
workflow-of-workflows-k8fm5-3824346685: 2021-04-05T17:55:43.362942100Z time=&quot;2021-04-05T17:55:43.362Z&quot; level=info msg=&quot;kubectl create -f /tmp/manifest.yaml -o json&quot;
workflow-of-workflows-k8fm5-3824346685: 2021-04-05T17:55:43.837625500Z time=&quot;2021-04-05T17:55:43.837Z&quot; level=info msg=&quot;Resource: argo/Workflow.argoproj.io/message-passing-1-t8749. SelfLink: /apis/argoproj.io/v1alpha1/namespaces/argo/workflows/message-passing-1-t8749&quot;
workflow-of-workflows-k8fm5-3824346685: 2021-04-05T17:55:43.837636900Z time=&quot;2021-04-05T17:55:43.837Z&quot; level=info msg=&quot;Starting SIGUSR2 signal monitor&quot;
workflow-of-workflows-k8fm5-3824346685: 2021-04-05T17:55:43.837696900Z time=&quot;2021-04-05T17:55:43.837Z&quot; level=info msg=&quot;No output parameters&quot;
</code></pre>
<p>Based on this output, the container name seems to be argo/Workflow.argoproj.io/message-passing-1-t8749  but when I add that to the end I get an error.  Here are the commands I have tried:</p>
<pre><code>argo logs -n argo workflow-of-workflows-k8fm5 workflow-of-workflows-k8fm5-3824346685 -c argo/Workflow.argoproj.io/message-passing-1-t8749
</code></pre>
<p>or</p>
<pre><code>argo logs -n argo workflow-of-workflows-k8fm5 workflow-of-workflows-k8fm5-3824346685 -c message-passing-1-t8749
</code></pre>

<p>Thanks to Alex of ArgoProj!</p>
<p>Here is a command I did not know:</p>
<p>kubectl get workflow</p>
<p>will list (surprise) workflows!  From there, I could see the individual workflows embedded into the larger workflow.</p>
