Getting Data In

Filter/modify data prior to ingestion?

BogeyMan
Loves-to-Learn Lots

Not sure this is even possible, but I'll ask anyway...

I have application(s) that are sending JSON data into Splunk, for example:

{
 "key1": "value1",
 "key2": "value2",
 "key3": "value3",
 "key4": "value1"
}

As you can see, the value for "key4" is the same as "key1".

So, in my example, I don't want to ingest the complete JSON payload, but only:

{
 "key1": "value1",
 "key2": "value2",
 "key3": "value3"
}

 

Can this be done?

Labels (3)
0 Karma

PickleRick
SplunkTrust
SplunkTrust

Manipulating structured data on ingest is best done by external means (particular method would depend on the use case). In some limited cases you probably could do some regex magic to remove some parts of incoming events but this solution would be highly sensitive to data format.

Oh, and I'm assuming you want to just remove key4, not dynamically decide which one to drop.

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

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Calling All Security Pros: Ready to Race Through Boston?

Hey Splunkers, .conf25 is heading to Boston and we’re kicking things off with something bold, competitive, and ...

Beyond Detection: How Splunk and Cisco Integrated Security Platforms Transform ...

Financial services organizations face an impossible equation: maintain 99.9% uptime for mission-critical ...

Customer success is front and center at .conf25

Hi Splunkers, If you are not able to be at .conf25 in person, you can still learn about all the latest news ...