Getting Data In

On data ingest, does Splunk recognize maps?

minerjaime
Engager

I'm using Splunk to store data tuples that contain maps.

For example, such a map is: {"likes": ["strawberry", "vanilla"], "dislikes": ["chocolate"]}.

Is there a way to get Splunk to recognize this as a map? To identify the keys? To query for specific values?

Thanks!

Tags (1)
0 Karma

martin_mueller
SplunkTrust
SplunkTrust

That looks like JSON, no big deal to index and have its fields extracted - check out http://docs.splunk.com/Documentation/Splunk/latest/Data/Extractfieldsfromfileswithstructureddata

minerjaime
Engager

Martin, thanks.

Yes, it is JSON and I have managed to get Splunk to "handle" it.

However, when this map is extracted, it doesn't behave in the best of ways. I seem to get an "Interesting Field" for every instance of "first" key in the map.

Is there a way to query the maps for certain keys or values?

0 Karma
Get Updates on the Splunk Community!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...