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!

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...