Getting Data In

what happens to old events when props.conf is modified?

martinh3
New Member

Log files for a sourcetype called "logx" are being forwarded to my Splunk enterprise using forwarders from a few different hosts.
If I change props.conf to add new properties for the sourcetype "logx", will the changes take effect on all of the old logx events, as well as all of the new incoming logx events?
Background: I need to add a BREAK_ONLY_BEFORE property so that events contain all of the data they should contain.
I did a test myself with data that was manually imported to splunk, and the old events still looked the same - not good.
Then, I added a new file with the same sourcetype, and this new file looked great in Splunk, though the old events are no longer there.
Did I do something wrong, or is this what I should expect if I were to modify props.conf in our production env?

Tags (1)
0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

Nothing can change what is already indexed except for the delete command. The behavior you describe is normal. To have a new props.conf apply to old data you need to re-index that data - export it to a file, delete the old events, then import the file. Try the export/import steps with a scratch index before you delete real data.

---
If this reply helps you, Karma would be appreciated.

View solution in original post

richgalloway
SplunkTrust
SplunkTrust

Nothing can change what is already indexed except for the delete command. The behavior you describe is normal. To have a new props.conf apply to old data you need to re-index that data - export it to a file, delete the old events, then import the file. Try the export/import steps with a scratch index before you delete real data.

---
If this reply helps you, Karma would be appreciated.
Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...