Splunk Search

Can you help me with input lookup, tstats, and visualization?

maryamchar
Explorer

Hello,

I have a lookup table for all the source types. I'm trying to use stats or tstats to show all the source types, and if they have no data coming, I want to show 0 for those source types. I'm having trouble using the tstats or time chart; it's only working with chart now. IS there a way to solve this problem?

Please help, thank you!

This is what I have now:

index=* |chart count by Sourcetype |append [inputlookup "Sourcetype.csv" |eval count=0 ]  

*** I would like to have timechart or tstats because I'm trying to use Trellis visualization***

0 Karma

chrisyounger
SplunkTrust
SplunkTrust

This is a really hard problem to try and write your own queries to solve. You should take a look at the MetaWoot app https://splunkbase.splunk.com/app/2949/ as it does a great job of this stuff. You can also just pull the queries out of that app if you want.

0 Karma
Get Updates on the Splunk Community!

Celebrating Fast Lane: 2025 Authorized Learning Partner of the Year

At .conf25, Splunk proudly recognized Fast Lane as the 2025 Authorized Learning Partner of the Year. This ...

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...