All Apps and Add-ons

Tag field is not showing in tstats search

bhsakarchourasi
Path Finder

Hi All,

Maybe a silly question but when i am running below search it's not returning the tag values as expected.

|tstats summariesonly=false count from datamodel= Malware where sourcetype=mysourcetype by index sourcetype Malware_Attacks.tag 

But when I run below query this shows the result.

index=myindex sourcetype=mysourcetype tag=malware tag=attack

Any solution will be most appreciated how can I get the TAG values using data model query/ tstats query.

 

Thanks,

Bhaskar

 

Labels (2)
0 Karma
1 Solution

bhsakarchourasi
Path Finder

Thanks for the reply

I figured it out, the problem resolved by whitelisting tag malware and attacks in ES -> CIM Setup -> Malware data model now tags are showing in result.

Thanks again for taking some time to revert on my question.

Regards,

Bhaskar

 

View solution in original post

richgalloway
SplunkTrust
SplunkTrust

Tags are not indexed fields so tstats will not find them.

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

bhsakarchourasi
Path Finder

Thanks for the reply

I figured it out, the problem resolved by whitelisting tag malware and attacks in ES -> CIM Setup -> Malware data model now tags are showing in result.

Thanks again for taking some time to revert on my question.

Regards,

Bhaskar

 

Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...

Data Persistence in the OpenTelemetry Collector

This blog post is part of an ongoing series on OpenTelemetry. What happens if the OpenTelemetry collector ...

Thanks for the Memories! Splunk University, .conf25, and our Community

Thank you to everyone in the Splunk Community who joined us for .conf25, which kicked off with our iconic ...