Splunk Search

Is there a way to see and identify new entries in an Index Search?

jhayIV
Engager

I would like to be able to identify new servers in the indexed search below:

index=####vsource=######### Extract.csv" | table  Name,_time,LastScanDate | timechart  span=1d dc(Name)

I used to do the manually in Excel using vlookups. I am sure there is some method I could use to identify servers that only had a current timestamp. (this data is 24 hours old when i pull it into Splunk)

0 Karma

lguinn2
Legend

Try this

yoursearchhere
| stats latest(LastScanDate) as MostRecentScanDate count by Name
| where count = 1
| table Name MostRecentScanDate

This produces a list of servers with their most recent scan date. It only shows servers with one entry, which should be "new" servers.
I am unclear what you wanted to plot with the timechart command, so I kept it simple here.

0 Karma
Get Updates on the Splunk Community!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...