Splunk Search

Why am I getting the last Value column?

djoobbani
Path Finder

Dear Splunk community:

So i have the following SPL that has been running fine for the last week or so however,

all of a sudden i am getting the last unwanted column (Value) which i don't expect to get.

Can you please explain, what i need to modify so that i don't get the last Value column?

 

<my serch> | chart count by path_template, http_status_code | addtotals fieldname=total
| foreach 2* 3* 4* 5* [ eval "percent_<<FIELD>>"=round(100*'<<FIELD>>'/total,2),
"<<FIELD>>"=if('<<FIELD>>'=0 , '<<FIELD>>', '<<FIELD>>'." (".'percent_<<FIELD>>'."%)")] | fields - percent_* total

 

Here is what is see:

Screen Shot 2022-09-01 at 11.08.54 AM.png

Really appreciate your help on this!

Thanks!

 

 

Labels (2)
0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

It's not clear where the field is coming from, but it's easy to remove with fields - VALUE

---
If this reply helps you, Karma would be appreciated.

View solution in original post

richgalloway
SplunkTrust
SplunkTrust

It's not clear where the field is coming from, but it's easy to remove with fields - VALUE

---
If this reply helps you, Karma would be appreciated.

djoobbani
Path Finder

Thank you richgalloway! that worked!

Tags (1)
0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...