Deployment Architecture

Can Splunk Universal forwarder be used to delete logs from a particular server.(Log rotation/deletion)

bmoniz
New Member

e.g. I have a universal forwarder installed on a server on which an application is running. The purpose of the UF is to send logs of this application to the splunk server for monitoring purposes. This application however has a load issue and needs log rotation to be put in place, else the server shuts down. I know there are conventional ways of setting up Log rotation, but can Splunk UF be used to delete the logs from source server and then index, instead of just copying the data and indexing it?

Please let me know if you guys need further clarification.

Tags (1)
0 Karma

davpx
Communicator

A batch input can be used to delete a file after it is forwarded but this should not be used for streaming logs. It sounds like you'll need to set up log rotate to tackle this issue.

0 Karma
Get Updates on the Splunk Community!

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...