Monitoring Splunk

is there a way to retrieve splunk server installation date from internal or audit index?

RiccardoV
Communicator

Hi guys,
I should retrieve installation date and some other splunk server informations directly from a standard search. Is it possible?

1 Solution

MuS
Legend

Hi RiccardoV,

if there wasn't done any splunk clean all and the setup is no longer then 6 years ago, you could search the index=_audit and see when you have the earliest events. That should give you at least some date and time. But you still cannot tell, if this is the real installation date or just a date after the last clean all.

index=_internal will keep its event by default only for 30 days.

hope this helps ...

cheers, MuS

View solution in original post

neelamssantosh
Contributor

On Unix:
1. rpm -qa| grep splunk
2. rpm -qi splunk-6.0.4-207768.x86_64 (Installed, other details.. )

0 Karma

RiccardoV
Communicator

I need to take that data INSIDE splunk

0 Karma

neelamssantosh
Contributor

In Web UI -> indexes,
look for earliest time.
Hope it can help u..

0 Karma

kristian_kolb
Ultra Champion

And also, it perfectly normal to set up a Splunk server and then import archived log files (which could easily be several years old), so looking at the earliest timestamp of an event is not a 100% certain solution.

/k

0 Karma

MuS
Legend

I already answered this question, but here would be the next answer to the next question. Remember this is also only valid if there was no splunk clean all done. So here would be the equal search to the UI approach:

 | rest /services/data/indexes | search title=main | table title minTime splunk_server

In this example uses only index=main and bear in mind, that on a search head you will get results form all search peers were as in the UI you will get even on a search head only the local index report.

cheers, MuS

RiccardoV
Communicator

I need to retrieve the value from a search

0 Karma

MuS
Legend

Hi RiccardoV,

if there wasn't done any splunk clean all and the setup is no longer then 6 years ago, you could search the index=_audit and see when you have the earliest events. That should give you at least some date and time. But you still cannot tell, if this is the real installation date or just a date after the last clean all.

index=_internal will keep its event by default only for 30 days.

hope this helps ...

cheers, MuS

RiccardoV
Communicator

thanks @MuS, it helps very much! I hoped in a different (and most "unique" solution) 🙂

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...