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!

Stay Connected: Your Guide to July Tech Talks, Office Hours, and Webinars!

What are Community Office Hours?Community Office Hours is an interactive 60-minute Zoom series where ...

Updated Data Type Articles, Anniversary Celebrations, and More on Splunk Lantern

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

A Prelude to .conf25: Your Guide to Splunk University

Heading to Boston this September for .conf25? Get a jumpstart by arriving a few days early for Splunk ...