I have upgraded Splunk enterprise from 6.4 to 6.5 version today.
I looking for a command to check when the last upgrade happened from 6.3 to 6.4 with date and time. I have old logs, but I couldn't find the details, and I am sure the upgrade happened from 6.3 to 6.4 two months back on my system. However, I can't get the version history.
Is there any other way to fetch the past version history?
_internal and _audit db retention policy is 30 days by default. So, probably you won't be able to find historical version change information from indexed data.
Otherwise, you can check splunkd.log or web_service.log for version info in general.
web_service.log (only if splunkweb is running. Indexers which disabled splunkweb cannot find this type of logs)
2016-10-12 16:04:28,259 INFO [57fec16e787f6c76b4fb90] root:650 - CONFIG: version_number (str): 6.5.0
splunkd.log (it is a build number)
10-12-2016 16:03:55.172 -0700 INFO loader - Splunkd starting (build 59c8927def0f).
you can use this on your search bar for the versions....
| rest /services/server/info | table splunk_server version
It only shows the current version of Splunk installed.
Is this a windows system?
yes it is
Well then, if you're collecting basic logs on that system then this search might work (it worked for me):
index=main sourcetype="wineventlog:application" | rex field=_raw "(Splunk\sEnterprise\.\sProduct\sVersion:\s)(?<Splunk_Version>\d+\.\d+\.\d+\.\d+)" |dedup Splunk_Version,_time | table Splunk_Version,_time
You could find a migration log file in the $SPLUNK_HOME/var/log/splunk directory which gets created during the upgrade. The file name will be migration.log.YYYY-mm-dd.HH-MM-SS
.
Is there any way to get the migration date and time from the search ?