Dashboards & Visualizations

How to select only a part of the input

louisgi
New Member

Hello,

I am working on a dashboard and I would like to keep only the first letter of the input (text) so that I can use it to call the correct datamodel in the query (my datamodels are untitled "A" "B" "C" in order to classify names).

If you have an idea, feel free to post it. 

Thanks in advance

Labels (1)
0 Karma

richgalloway
SplunkTrust
SplunkTrust

Here's one way:

... | eval letter=substr($inputToken$, 0, 1)
---
If this reply helps you, Karma would be appreciated.
0 Karma
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 ...