Dashboards & Visualizations

How to split strings with -?

KalebeRS
Explorer

Hello,

I have this strings, each of one different one of another.

KalebeRS_1-1688995474674.png

How can I split this lines just to get the values with "FEA_" and remove everything else after the "-"?

 

Labels (1)
0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @KalebeRS,

could you share a sample of your logs replacing the contents with other letters in text format (not screenshot)?

only to be sure about the data structure.

And highlight in bold the part to leave.

Then, must the second part of the events be removed before indexing or do you want to remove only in dashboards?

could you share a full events (obviously masked!)?

Ciao.

Giuseppe

0 Karma
Get Updates on the Splunk Community!

SplunkTrust Application Period is Officially OPEN!

It's that time, folks! The application/nomination period for the 2025 SplunkTrust is officially open! If you ...

Splunk Answers Content Calendar, June Edition II

Get ready to dive into Splunk Dashboard panels this week! We'll be tackling common questions around ...

Splunk Observability Cloud's AI Assistant in Action Series: Auditing Compliance and ...

This is the third post in the Splunk Observability Cloud’s AI Assistant in Action series that digs into how to ...