Reporting

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

ibob0304
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

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

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

0 Karma

prakash007
Builder

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

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

divyamudundi
Path Finder

It only shows the current version of Splunk installed.

0 Karma

lukejadamec
Super Champion

Is this a windows system?

0 Karma

ibob0304
Communicator

yes it is

0 Karma

lukejadamec
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

somesoni2
Revered Legend

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.

ibob0304
Communicator

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

0 Karma
Get Updates on the Splunk Community!

Detecting Remote Code Executions With the Splunk Threat Research Team

REGISTER NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If ...

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...