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!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...