Getting Data In

Multiple fields from json array

yurykiselev
Path Finder

Hi!
How to split JSON array elements (value)

{
  "id": 4321,
  "value": [
   5, 6, 7, 8
  ]
}

from multivalue field:

id     | value
4321     5 6 7 8

to multiple fileds with some index remaining one event:

id     | value_0 | value_1 | value_2 | value_3
4321     5         6         7         8

Thank you!

Tags (1)
0 Karma

p_gurav
Champion

Can you try :

| makemv delim=" " value | mvexpand value
0 Karma
Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...