Getting Data In

Set timestamp to system or executiontime for scripted input

RobertRi
Communicator

Hi

I use a script which gets a lot of data back, sometimes the string looks like a timestamp and splunk decide to use this string as a time. This results in a strange behaviour that events become a time which is years ago or in the future.

Is it possible to tell splunk, to use the execution or actual system time for this scripted input?

One possibility is to create a timestamp in the script, but the output is very long so i would leave unnecessary data.

Thanks
Robert

Tags (1)
0 Karma
1 Solution

martin_mueller
SplunkTrust
SplunkTrust

You can tell Splunk to use the current indexing time as timestamp for the event like this:

DATETIME_CONFIG = CURRENT

See http://docs.splunk.com/Documentation/Splunk/5.0.2/admin/Propsconf for reference.

View solution in original post

martin_mueller
SplunkTrust
SplunkTrust

You can tell Splunk to use the current indexing time as timestamp for the event like this:

DATETIME_CONFIG = CURRENT

See http://docs.splunk.com/Documentation/Splunk/5.0.2/admin/Propsconf for reference.

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