Getting Data In

Why am I getting error "Failed to parse timestamp" with my current TIME_FORMAT?

perftechy
New Member

This may have been asked before, but I can't find answer that solves my problem.

First time using Splunk community edition. I upload a file with json records, each record has many fields, two of them are timestamp related:

createdAt: 2014/11/16 19:21:04 +0000
updatedAt: 2014/11/16 19:22:15 +0000

I used Timestamp format: %Y/%m/%d %H:%M:%S +0000

But I got error:

Could not use strptime to parse timestamp from ...Failed to parse timestamp. Defaulting to file modtime

Any idea what I have done wrong. Thanks.

0 Karma

woodcock
Esteemed Legend

You should use this:

TIME_FORMAT = %Y/%m/%d %H:%M:%S %z
0 Karma
Get Updates on the Splunk Community!

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

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