Quantcast
Channel: Questions in topic: "splunk-enterprise"
Viewing all articles
Browse latest Browse all 47296

Can splunk convert a date to epoch time if the year is 1970

$
0
0
When running the search: | eval startTime="1970-01-01"| eval dateadded_epoch = strptime(startTime, "%Y-%m-%d")| table Jobname dateadded_epoch ![alt text][1] I get no results, but if the year is changed to 1971 I get the expected output. ![alt text][2] [1]: /storage/temp/73268-epoch1.png [2]: /storage/temp/73269-epoch2.png

Viewing all articles
Browse latest Browse all 47296

Trending Articles