Monitoring Splunk

Keep invalid json files

morganj1
Explorer

Hi, I've set up a Splunk monitor to send some json files to Splunk, however it doesn't send invalid json files. I can see the reasoning behind this, but I'd like to keep invalid json files so that I can see which ones are valid/invalid on my dashboard.

Is there any way to make Splunk send over all json files even if they're invalid? Thanks

 

Edit:

For instance, could I maybe make a sourcetype which sets the sourcetype field to be "json" if valid and "invalid_json" if not valid?

Labels (1)
0 Karma
Get Updates on the Splunk Community!

What the End of Support for Splunk Add-on Builder Means for You

Hello Splunk Community! We want to share an important update regarding the future of the Splunk Add-on Builder ...

Solve, Learn, Repeat: New Puzzle Channel Now Live

Welcome to the Splunk Puzzle PlaygroundIf you are anything like me, you love to solve problems, and what ...

Building Reliable Asset and Identity Frameworks in Splunk ES

 Accurate asset and identity resolution is the backbone of security operations. Without it, alerts are ...