I'm trying to create a dashboard to find the old version and new version of splunk from the logs
but unable to find it.
Are you on Splunk 9.X? If so you can do this ...
index=_configtracker sourcetype=splunk_configuration_change "data.path"="/opt/splunk/etc/system/local/migration.conf"
| eval old = 'data.changes{}.properties{}.old_value'
| eval new = 'data.changes{}.properties{}.new_value'
| table host old new
Does this meet your requirements?