Hi everyone.. question regarding ShellTasks. Do lo...
# flyte-support
l
Hi everyone.. question regarding ShellTasks. Do logs/prints emitted within a ShellTask get published to the Flyte task logs AFTER it’s completed? While we can see the logs emitted live for PythonTasks and ContainerTasks… even though we can see the ShellTask running, there are no logs… and we see logs after the task is done.. ? cc @kind-solstice-83267
h
What do you mean by "Flyte task logs"? where do you see that? Flyte includes configurations for where to display the logs but doesn't collect the logs itself... It's expected that your deployment is configured to push the logs somewhere (or use kubernetes dashboard to view live logs). Is that what you are trying to do?
l
Our setup is configured to go to Splunk
so for ShellTasks we don’t see anything popping up in splunk until after the task is done
h
aha
e
@little-cricket-84530 can you pls let me know how are you sending the logs to splunk, i mean what did you setup in flyte helm chart
l
Copy code
task_logs:
    plugins:
      logs:
        templates:
          - displayName: "splunk"
            templateUris:
              - <https://splunk.mydeployment.com/en-US/app/search/search?q=search%20index%3Dmy_search_idx%20kubernetes.namespace_name%3D{{> "{{" }}.namespace{{ "}}" }}%20kubernetes.container_name%3D{{ "{{" }}.containerName{{ "}}" }}%20kubernetes.pod_name%3D{{ "{{" }}.podName{{ "}}" }}%7C%20table%20message&display.page.search.mode=smart&dispatch.sample_ratio=1&earliest=-72h&latest=now&display.prefs.statistics.offset=20&display.page.search.tab=statistics&display.general.type=statistics
            messageFormat: 2