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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...