Splunk Search

How to search for the the last data point in a graph for each host in a table?

minkyuk
Explorer

In a given graph, say,

[|inputlookup capacityQuarterOne.csv] in which I have a big table of [ host / used_mb ] for every different host.

The search runs for past x # of days (7 days, 30 days, 1 quarter, etc.).

How could I find the LAST point in the graph (final point) for each host in the table?
I just want to make sure it's less than max threshold cap, so I want to report the final point for every host in the graph.

I would highly appreciate any input from you Splucktians,

Thank you in advance,
Jack

Tags (3)
0 Karma
1 Solution

woodcock
Esteemed Legend

Like this:

... | dedup host

View solution in original post

0 Karma

woodcock
Esteemed Legend

Like this:

... | dedup host
0 Karma

minkyuk
Explorer

Isn't dedup just omitting duplicating elements?

0 Karma

woodcock
Esteemed Legend

It works by keeping the latest example of the deduped fields. It does exactly what you are desiring: keep the most recent event for each host.

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...