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!

Index This | I’m short for "configuration file.” What am I?

May 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with a Special ...

New Articles from Academic Learning Partners, Help Expand Lantern’s Use Case Library, ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Your Guide to SPL2 at .conf24!

So, you’re headed to .conf24? You’re in for a good time. Las Vegas weather is just *chef’s kiss* beautiful in ...