Splunk Enterprise

replace string in log

sarit_s
Communicator

Hello

I have logs that contains some string that i want to replace with *** 

i want to to be permanent and not only in search time.

is it possible ?

p.s - i don't have the log files anymore so i cannot delete and index again

 

thanks

Labels (1)
Tags (1)
0 Karma

PickleRick
SplunkTrust
SplunkTrust

If it's a very sensitive issue, you might try to export the events from the whole index (or probably you could try exporting raw data from a single bucket with help from Splunk Professional Services), delete index files from server's disk, modify the exported events "offline" and ingest them again. But it's a very cumbersome process.

In general, once the data is indexed, it's immutable and stays in the index until it expires or is being pushed out because of index size limit. Even the delete operation does not really delete data from index files, it just marks the events as unsearchable.

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Once data is indexed it cannot be edited, modified, changed, replaced, or altered in any way.  Any replacements will have to be at search time.

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

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

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 GA in US-AWS!

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