Reporting
Highlighted

Is there any way to get a Splunk version upgrade history report?

Communicator

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?

0 Karma
Highlighted

Re: Is there any way to get a Splunk version upgrade history report?

SplunkTrust
SplunkTrust

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.

0 Karma
Highlighted

Re: Is there any way to get a Splunk version upgrade history report?

Communicator

Is there any way to get the migration date and time from the search ?

0 Karma
Highlighted

Re: Is there any way to get a Splunk version upgrade history report?

Super Champion

Is this a windows system?

0 Karma
Highlighted

Re: Is there any way to get a Splunk version upgrade history report?

Communicator

yes it is

0 Karma
Highlighted

Re: Is there any way to get a Splunk version upgrade history report?

Super Champion

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
0 Karma
Highlighted

Re: Is there any way to get a Splunk version upgrade history report?

Builder

you can use this on your search bar for the versions....

 | rest /services/server/info | table splunk_server version
0 Karma
Highlighted

Re: Is there any way to get a Splunk version upgrade history report?

Path Finder

It only shows the current version of Splunk installed.

0 Karma
Highlighted

Re: Is there any way to get a Splunk version upgrade history report?

Splunk Employee
Splunk Employee

_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.

  • webservice.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).

0 Karma