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!

Building Reliable Asset and Identity Frameworks in Splunk ES

 Accurate asset and identity resolution is the backbone of security operations. Without it, alerts are ...

Cloud Monitoring Console - Unlocking Greater Visibility in SVC Usage Reporting

For Splunk Cloud customers, understanding and optimizing Splunk Virtual Compute (SVC) usage and resource ...

Automatic Discovery Part 3: Practical Use Cases

If you’ve enabled Automatic Discovery in your install of the Splunk Distribution of the OpenTelemetry ...