Hi team.. I’m configuring the logging link for spl...
# ask-the-community
r
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
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
yes… looks exactly like this…
plugins
is nested under
task_logs
d
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
yes.. helm it is
that was indeed the problem
d
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
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
161 Views