Splunk Search

Extracting date

rajdiddi
New Member

Hi,

I have the challenge of pulling log files which come in m-d-yyyy format. Please advise how to advise the splunk forwarder to pull the above formatted log files.

thanks

Rajeshwari

Tags (1)
0 Karma

Ayn
Legend

If there is no timestamps in the file itself, Splunk will try to look at the file name to get date info from there. See http://docs.splunk.com/Documentation/Splunk/latest/Data/HowSplunkextractstimestamps

0 Karma

karthikbalakris
Explorer

Ayn,
She is trying to ask the following:
there is a log file whose name is the date stamp itself. For Ex: 3-29-2013.log, 3-30-2013.log

added to this there are other logs in the same directory which has a date stamp sufficed to it. so *2013.log isnot possible. how can we now configure the input.conf to read these logs?

0 Karma

Ayn
Legend

Uh...well, please see my answer? What information are you missing?

rajdiddi
New Member

Thanks Ayn for your prompt reply, actually the case is that the log file which splunk has to open is in m-d-yyyy format, Can you provide an example of how to handle this.

Thanks in anticipation.

Rajeshwari

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

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

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...