Splunk Enterprise

Splunk 8.1.0 tags are unreliable



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 the last month, the Splunk Threat Research Team (STRT) has had 2 releases of new security content via the ...

Announcing the 1st Round Champion’s Tribute Winners of the Great Resilience Quest

We are happy to announce the 20 lucky questers who are selected to be the first round of Champion's Tribute ...

We’ve Got Education Validation!

Are you feeling it? All the career-boosting benefits of up-skilling with Splunk? It’s not just a feeling, it's ...