Quantcast
Channel: Questions in topic: "splunk-enterprise"
Viewing all articles
Browse latest Browse all 47296

Is it possible to turn a multivalued field with an arbitrary number of elements into columns?

$
0
0
I have a search that generates two fields -- host and application. Application is a multivalued field with varying numbers of results. Assume the field is comma delimited in the example below. It looks something like: host application server1 splunk,apache,named server2 apache,tomcat I would like to convert it into the following column format: host application1 application2 application3 application4... server1 splunk apache named server2 apache tomcat I know I can use eval and mvindex to manually create each column name and then transpose them, but without some kind of for loop, I would have to create a search with the eval statements up to the maximum mvindex value I expect to see. Is there any way to do this without having to manually create each new column name? Thx.

Viewing all articles
Browse latest Browse all 47296

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>