Monitoring Splunk

where to save rotated logs?

rupesh212121
Explorer

my question exactly means that suppose my logs are rotated constantly. for example access.log becomes access.log1 after log rotation. so i mean can i save this access.log1 somewhere in splunk. so whenever i need i can refer this.

how i can save my data in different indexes in splunk. and how can i refer whn i need them.

what are hot path and cold path in indexes and how can i use them please explain with an example?

Tags (1)
0 Karma

rupesh212121
Explorer

Thanks david for the link. but i wanted to know if someday later if i want to view the log rotated file thn how can i view it. is there any mechanism that this log rotated data can be stored anywhere in splunk for future view or splunk maitains some history anywhere.

0 Karma

jrodman
Splunk Employee
Splunk Employee

Splunk stores the log contents. The log files are not needed by splunk at search time.

0 Karma

David
Splunk Employee
Splunk Employee

I would set up splunk to monitor access.log. In splunk you will always search on source="/path/to/access.log" -- access.log1 effectively doesn't exist in splunk, but you will always have the search history going back through time, of access.log (before it was rotated), if that makes any sense.

I'd take a look at the following:

Let me know if that answers your question.

0 Karma
Get Updates on the Splunk Community!

.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 ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...