https://flyte.org logo
#ask-the-community
Title
# ask-the-community
r

Rupsha Chaudhuri

08/25/2022, 5:57 PM
Hi team.. I’m configuring the logging link for splunk. We set up the template URI as defined here to look like this:
Copy code
<https://splunk.something.com/en-US/app/search/search?q=search%20index%3Dmy_index%20kubernetes.namespace_name%3D{{.namespace}}%20kubernetes.container_name%3D{{.containerName}}%20kubernetes.pod_name%3D{{.podName}}&display.page.search.mode=smart&dispatch.sample_ratio=1&earliest=-72h&latest=now>
However the actual splunk link generated on the flyte console has none of the templatized fields populated
d

Dan Rammer (hamersaw)

08/25/2022, 6:33 PM
This is interesting, I tried the same template and it's working for me:
<https://splunk.something.com/en-US/app/search/search?q=search%20index%3Dmy_index%20kube[…]ode=smart&dispatch.sample_ratio=1&earliest=-72h&latest=now>
my local config is:
Copy code
plugins:
  logs:
    templates:
      - displayName: splunk
        templateUris:
          - "<https://splunk.something.com/en-US/app/search/search?q=search%20index%3Dmy_index%20kubernetes.namespace_name%3D{{.namespace}}%20kubernetes.container_name%3D{{.containerName}}%20kubernetes.pod_name%3D{{.podName}}&display.page.search.mode=smart&dispatch.sample_ratio=1&earliest=-72h&latest=now>"
is this how you have this configured?
r

Rupsha Chaudhuri

08/25/2022, 6:36 PM
yes… looks exactly like this…
plugins
is nested under
task_logs
d

Dan Rammer (hamersaw)

08/25/2022, 6:38 PM
OK. Are you deploying with helm? I think there was an issue with using the same regex ids (ex.
{{ .foo }}
) that helm uses to define these logs.
@Yuvraj do you recall this issue?
r

Rupsha Chaudhuri

08/25/2022, 7:16 PM
yes.. helm it is
that was indeed the problem
d

Dan Rammer (hamersaw)

08/25/2022, 10:13 PM
Oh ok, thanks for figuring it out! I admit I don’t know a ton about helm so was waiting for backup 🙂. Can you briefly describe what you had to do - I’m wondering if we should make sure to document this somewhere? cc @Smriti Satyan
👀 1
r

Rupsha Chaudhuri

08/25/2022, 10:14 PM
Copy code
<https://splunk.something.com/en-US/app/search/search?q=search%20index%3Dmy_index%20kubernetes.namespace_name%3D{{> "{{" }}.namespace{{ "}}" }}%20kubernetes.container_name%3D{{ "{{" }}.containerName{{ "}}" }}%20kubernetes.pod_name%3D{{ "{{" }}.podName{{ "}}" }}&display.page.search.mode=smart&dispatch.sample_ratio=1&earliest=-72h&latest=now
5 Views