Splunk Enterprise

Splunk 8.1.0 tags are unreliable

kaurinko
Communicator

Hi,

I just upgraded our Splunk server to 8.1.0 and after a while  realized some of our good old searches utilized in a couple of dashboards had stopped working. After a lot of digging around, it seems like the problem has been narrowed down to tags not working as before in 8.0.6. The code below will serve as an example.

 

index="myindex" summaryline
| stats
    count(eval(STATUS_CODE=10 OR STATUS_CODE=42)) AS "No-go" 
    count(eval(STATUS_CODE=50)) AS OK 
    by tag::CUSTOMER_CODE

 

The ides is, that summaryline is just a keyword to match the appropriate lines of data. The lines will populate the fields CUSTOMER_CODE and STATUS_CODE, and tag::CUSTOMER_CODE is defined based on the value of CUSTOMER_CODE under Settings > Tags.


Running the above in Verbose mode works, even though previously I didn't need to include CUSTOMER_CODE in the fields list. Running in Fast mode will produce nothing for the same data but results will be shown, if statistics are calculated "by CUSTOMER_CODE". For this reason, the dashboard using the above construct stopped producing the data we wanted.

Looking at the problem, there is an obvious workaround to use lookup, and the example search looks like this

 

index="myindex" summaryline
| lookup CustomerLookup.csv CUSTOMER_CODE OUTPUT CUSTOMER AS Customer
| stats
    count(eval(STATUS_CODE=10 OR STATUS_CODE=42)) AS "No-go" 
    count(eval(STATUS_CODE=50)) AS OK 
    by Customer

 

CustomerLookup.csv will then hold columns CUSTOMER_CODE, CUSTOMER and possibly others separated by commas. I tested, and I could not output the CUSTOMER column as tag::CUSTOMER, or no results were produced.


Anyone else with this kind of experiences and is there a way to make tags work again like they used to?

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

Enterprise Security Content Update (ESCU) | New Releases

In November, the Splunk Threat Research Team had one release of new security content via the Enterprise ...

Index This | Divide 100 by half. What do you get?

November 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with this ...

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

❄️ Celebrate the season with our December lineup of Community Office Hours, Tech Talks, and Webinars! ...