Splunk Search

Filter Feilds and suppress output data

Satyapv
Engager

Dear All,

We have splunk index with data like pattern and the pattern was recently changed.

{"Feild1":"DATA1","Feild2":"DATA2","Feild3":"DATA3","Feild4":"DATA4"}

We have several dashboards using previous data pattern like below.

DATA1,DATA2,DATA3,DATA4

Looking for a way to filter out or suppress {"Feild1": "Feild2":.....} using splunk query's and feed output to dashboards.

 

Kindly suggest how this can be done.

 

Thanks

 

Labels (4)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

This looks like JSON of sorts - have you considered treating it as such?

In the meantime, you could use rex mode=sed

| rex mode=sed "s/\"Felid\d\"://g"
0 Karma

Satyapv
Engager

Hello,

 

This looks like JSON of sorts - have you considered treating it as such? - Not sure how to implement it.

 

| rex mode=sed "s/\"Felid\d\"://g" - how do we implement for multiple fields like Feild1, Field 2 etc?

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Perhaps if you shared your actual events (anonymised as little as possible of course), we might be able to give more useful advise - as it stands, a generic question will usually get a generic response! 😎

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

.conf25 Global Broadcast: Don’t Miss a Moment

Hello Splunkers, .conf25 is only a click away.  Not able to make it to .conf25 in person? No worries, you can ...

Observe and Secure All Apps with Splunk

 Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

What's New in Splunk Observability - August 2025

What's New We are excited to announce the latest enhancements to Splunk Observability Cloud as well as what is ...