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!

Observe and Secure All Apps with Splunk

  Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

Splunk Decoded: Business Transactions vs Business IQ

It’s the morning of Black Friday, and your e-commerce site is handling 10x normal traffic. Orders are flowing, ...

Fastest way to demo Observability

I’ve been having a lot of fun learning about Kubernetes and Observability. I set myself an interesting ...