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
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...