Splunk Search

How to use tokens in custom search commands

ketaka
Explorer

I want to use dashboard text input in custom search command.
Please tell me some tips such as how to use and sentences.

I have set up a text input field in the dashboard as "sysCableNAme_token", and I want to pass the value to a custom search command and use it.

Search with token and custom search commands are successful separately.

Thank you.

Tags (1)
0 Karma
1 Solution

jkat54
SplunkTrust
SplunkTrust
 | yourCustomCommand $sysCableNAme_token$

View solution in original post

0 Karma

jkat54
SplunkTrust
SplunkTrust
 | yourCustomCommand $sysCableNAme_token$
0 Karma

ketaka
Explorer

Thank you jkat54 ♦ !

We received the value in the following Python.

import sys
args = sys.argv
print(args[0])
print(args[1])
Get Updates on the Splunk Community!

Observe and Secure All Apps with Splunk

  Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

Splunk Decoded: Business Transactions vs Business IQ

It’s the morning of Black Friday, and your e-commerce site is handling 10x normal traffic. Orders are flowing, ...

Fastest way to demo Observability

I’ve been having a lot of fun learning about Kubernetes and Observability. I set myself an interesting ...