Getting Data In

what will be regex for timestamp format 2019-11-06T03:30:27+00:00?

vin02ptl
Explorer

what will be regex for timestamp format 2019-11-06T03:30:27+00:00? I am getting error during indexing the data file.

Tags (2)
0 Karma

woodcock
Esteemed Legend

Just in case:

TIME_FORMAT = %Y-%m-%dT%H:%M:%S%z
0 Karma

vin02ptl
Explorer

Not Matching

0 Karma

woodcock
Esteemed Legend

You also need TIME_PREFIX and MAX_TIMESTAMP_LOOKAHEAD. If you are sure that your settings are correct, it must be something else. If you are doing a sourcetype override/overwrite, you must use the ORIGINAL value, NOT the new value. You must deploy your settings to the first full instance(s) of Splunk that handle the events (usually either the HF tier if you use one, or else your Indexer tier) UNLESS you are using HEC's JSON endpoint (it gets pre-cooked) or INDEXED_EXTRACTIONS (configs go on the UF in that case), then restart all Splunk instances there. When (re)evaluating, you must send in new events (old events will stay broken), then test using _index_earliest=-5m to be absolutely certain that you are only examining the newly indexed events.

0 Karma

mayurr98
Super Champion

try this :

TIME_FORMAT = %Y-%m-%dT%H:%M:%S
0 Karma

marycordova
SplunkTrust
SplunkTrust

\d+\-\d+\-\d+T\d+\:\d+\:\d+\+\d+\:\d+

also: https://regex101.com/

@marycordova
0 Karma

vin02ptl
Explorer

need to YMS format

0 Karma
Get Updates on the Splunk Community!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...