Splunk Search

In a time limited table, I'd like to indicate which field values are unique across the whole data set?

jezwebb
New Member

Hi there,

I have this dashboard that displays a table of field values from a data set. At the top are some filters, including time range. I'd like to indicate in the table which values in a certain field are unique across all time - i.e. have never been seen in the whole data set.

For example if, in the last 24 hours, the user names "Bill", "Fred" and "Emmy" have been input but only "Emmy" has never been seen in the data set ever, I want that flagged up.

I really would want the solution to be "live" i.e. not rely on a lookup table but be computationally light as the dashboard refreshes regularly.

Suggestions welcome!

Jeremy.

0 Karma

DalJeanis
Legend

Three strategies:

1) If this is an indexed field, then you can use tstats to find the first instance of the value.

2) You could create a summary index that includes the first and last appearance of the value.

3) You could periodically create a lookup table that includes the first and last appearance of the value.

It's not particularly heavy to periodically create a lookup table with first and last occurrence of each username,

Then you create your ongoing search that creates a new record for each occurrence, with first and last occurrence fields set to the new data/time stamp, and stats them together to get the earliest first and latest last occurrence fields for each.

If the first and last occurrence are the same -- or if the first occurrence is within a certain window, then a post process search would pop them over to a second panel.

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 ...