Splunk Search

Filter based on Null or blank or whitespace value....

wwhitener
Communicator

Good afternoon all,

As a relative noob to Splunk searching, I have a relatively easy (I hope) question.

I have a Splunk box that is dedicated to testing and as such will have periods of no information coming in followed by periods of indexing for tests and then it goes back dormant.

Is there a way to filter out blanks out of results? For example, I have a query that looks at the traffic being indexed--and (huge surprise) there's gaps where no traffic at all was indexed. So it's null or blank or NaN or something. How do I get those records removed from the results?

Thank you in advance!

0 Karma
1 Solution

wwhitener
Communicator

I'm doing the following query:

index=_internal source=*license_usage.log | eval MB=b/1024/1024 | timechart span=1d sum(MB)

On 4.2.2.

When there's no "where" it renders fine. It's a problem with where.

View solution in original post

0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...