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!

What the End of Support for Splunk Add-on Builder Means for You

Hello Splunk Community! We want to share an important update regarding the future of the Splunk Add-on Builder ...

Solve, Learn, Repeat: New Puzzle Channel Now Live

Welcome to the Splunk Puzzle PlaygroundIf you are anything like me, you love to solve problems, and what ...

Building Reliable Asset and Identity Frameworks in Splunk ES

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