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!

Celebrate CX Day with Splunk: Take our interactive quiz, join our LinkedIn Live ...

Today and every day, Splunk celebrates the importance of customer experience throughout our product, ...

How to Get Started with Splunk Data Management Pipeline Builders (Edge Processor & ...

If you want to gain full control over your growing data volumes, check out Splunk’s Data Management pipeline ...

Out of the Box to Up And Running - Streamlined Observability for Your Cloud ...

  Tech Talk Streamlined Observability for Your Cloud Environment Register    Out of the Box to Up And Running ...