Getting Data In

Handle log rolling and index today's log file and yesterday's log file

samitroy
New Member

we have a scenario where we roll logs everyday. we want splunk to index log file for today and log file for yesterday. because our application server keeps logging to both today's log file and yesterday's log file. No need to index on the log file which got generated the day before yesterday. How can we achieve this ?

Tags (2)
0 Karma

kristian_kolb
Ultra Champion

Normally it's enough to monitor the directory in which the files are created. Splunk will detect that the files are being updated, and index the new events. Start by reading through these sections of the docs.

http://docs.splunk.com/Documentation/Splunk/latest/Tutorial/WelcometotheSplunkTutorial
http://docs.splunk.com/Documentation/Splunk/latest/Data/WhatSplunkcanmonitor

0 Karma
Get Updates on the Splunk Community!

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...