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
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...