Getting Data In

change date of import data

mehrdad_2000
Path Finder

hi
i'm copy log of my application to splunk server with script (i don't use forwarder here)

now problem is log send to splunk server with 1 day delay!
for example yesterday log rich to server today! (real date of logs only exist in name of log file, even in each line of log only exist time not date)

as you know splunk consider date of import log file as date of events!
alt text

now how can I force splunk to use date that exist in log file name?

FYI: file extension are bz2.
thanks.

0 Karma

to4kawa
SplunkTrust
SplunkTrust
0 Karma

mehrdad_2000
Path Finder

Does it work on compress file?

0 Karma

to4kawa
SplunkTrust
SplunkTrust

This answer explains to change file name to timestamp.
Does it work on compress file?
I can't understand what you want.

0 Karma
.conf21 CFS Extended through 5/20!

Don't miss your chance
to share your Splunk
wisdom in-person or
virtually at .conf21!

Call for Speakers has
been extended through
Thursday, 5/20!