Getting Data In

How to delete data from syslog-ng after Splunk indexes it, and confirm the data is indexed before deletion?

Path Finder

Is there a way to have Splunk delete the data from a syslog-ng server after it indexes it? Would like to confirm that data is indexed before it gets deleted.

0 Karma


Hey ckillg,

You could also set log rotation in syslog-ng to delete logs after a few days.

good luck.

0 Karma


Hi ckillg,

if you're looking at inputs.conf there is the batch mode which will delete a file after it has been indexed by Splunk....but it has no confirmation method.

Hope this helps ...

cheers, MuS

0 Karma
Get Updates on the Splunk Community!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...