Getting Data In

splunk changes not reflecting

joydeep741
Path Finder

I configured my server logs in splunk.
When I saw the logs in splunk I realized I set up some wrong properties in props.conf.

Now I rectify the properties in props.conf and restart server.

Somehow I still see the same logs on splunk front end, as they were before I rectified the issue in conf file.

Is there a way to know, if Splunk is picking logs from NEW INDEX ?
It seems it is picking logs from the index the got created the first time around.

0 Karma

skoelpin
SplunkTrust
SplunkTrust

Since props.conf lives on the indexer, it means that if you make changes then it will only affect new data being indexed, so it will not work retroactively. The only way to make changes retroactively is at search time

To solve your problem, I would reccomend deleting the data from the index and reindexing the new data with the correct props.conf configuration

To remove data from the index

sourcetype=YOUR_SOURCETYPE | delete

To Reindex your new data

Do a oneshoot to reindex your data, go to your forwarder and to the splunk/bin folder

./splunk add oneshot /full/path/to/file -sourcetype mysourcetype -index myindex -host myhostparam

richgalloway
SplunkTrust
SplunkTrust

Your changes will only affect new events. Anything indexed before you changed props.conf will continue to have the wrong properties. Are you sure you're looking at new data?

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

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

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

Combine Multiline Logs into a Single Event with SOCK: a Step-by-Step Guide for ...

Combine multiline logs into a single event with SOCK - a step-by-step guide for newbies Olga Malita The ...