Getting Data In

timestamp only containing time

aaronkorn
Splunk Employee
Splunk Employee

We have a rolling log for everyday and can tell which log belongs to which date based on the name. The events in the log only contain times without the day and month. Is is it possible to add the date part from the file name or is there anything else we can to get the date added to the timestamp? We have another solution but it would require a restart of a highly critical clinical application and would be the last resort.

Thanks!

0 Karma

aholzer
Motivator

See this question / answer:

http://splunk-base.splunk.com/answers/68599/get-timestamp-from-filename

This answer is fairly thorough and has a link to the documentation too.

0 Karma
Get Updates on the Splunk Community!

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

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