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!

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

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...