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

 

Get Updates on the Splunk Community!

Accelerating Observability as Code with the Splunk AI Assistant

We’ve seen in previous posts what Observability as Code (OaC) is and how it’s now essential for managing ...

Integrating Splunk Search API and Quarto to Create Reproducible Investigation ...

 Splunk is More Than Just the Web Console For Digital Forensics and Incident Response (DFIR) practitioners, ...

Congratulations to the 2025-2026 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...