Getting Data In

How to get total comma separated values in splunk?

ajayabburi508
Path Finder

Hi all,

I am getting event like this alt text

Im trying to get total values with the comma separated but I am not getting them.

I have written this basic query:

index="****"  var=***| head 1 | table val

But it is not working, please help me out.

Tags (2)
0 Karma
1 Solution

ajayabburi508
Path Finder
index="****"  var=***| head 1|eval new=_raw | eval neew=split(new,"var=***,val=")| table neew | makemv delim="," neew|mvexpand neew |streamstats count | where count!=1 | fields - count

View solution in original post

0 Karma

ajayabburi508
Path Finder
index="****"  var=***| head 1|eval new=_raw | eval neew=split(new,"var=***,val=")| table neew | makemv delim="," neew|mvexpand neew |streamstats count | where count!=1 | fields - count
0 Karma

mayurr98
Super Champion

can you share one sample event of your raw data?
Also try this

index="" var=* 
| head 1 
| table val 
| rex field=val mode=sed "s/val\=//g"

let me know if this helps!

0 Karma

xpac
SplunkTrust
SplunkTrust

For the example event you showed us - what would be your desired result?

0 Karma

ajayabburi508
Path Finder

i want out put like this

val
972,972,972,972,972,972,972,972..............................

0 Karma
Get Updates on the Splunk Community!

Now Available: Cisco Talos Threat Intelligence Integrations for Splunk Security Cloud ...

At .conf24, we shared that we were in the process of integrating Cisco Talos threat intelligence into Splunk ...

Preparing your Splunk Environment for OpenSSL3

The Splunk platform will transition to OpenSSL version 3 in a future release. Actions are required to prepare ...

Easily Improve Agent Saturation with the Splunk Add-on for OpenTelemetry Collector

Agent Saturation What and Whys In application performance monitoring, saturation is defined as the total load ...