Splunk Search

Is it possible to consider "time" as "_time" on logstash config?

indeed_2000
Motivator

Hi

I have logstash config that send logs to Splunk HEC.

these data contain field that call "time".

Now question is: Is it possible to consider "time" as "_time" on logstash config?

 

FYI: i want to consider this time as _time not the time that splunk receive it

 

Any idea?

Thanks

Labels (1)
Tags (3)
0 Karma

isoutamo
SplunkTrust
SplunkTrust
0 Karma

indeed_2000
Motivator

@isoutamois it possible to fix it in logstash ? instead in splunk?

how splunk decide what is the "_time"? always consider as receive time?

0 Karma

isoutamo
SplunkTrust
SplunkTrust

As you send it via HEC you must told to splunk which field you want to use as _time otherwise it's used it's own heuristic to try to guess the correct time.

Here is described how this is happening https://docs.splunk.com/Documentation/Splunk/latest/Data/HowSplunkextractstimestamps

 

0 Karma

indeed_2000
Motivator

As splunk can guess timestamp is it possible to send data from logstash in somehow that splunk consider e.g field that in json format called “time” consider as _time?

without change splunk settings?

 

 

0 Karma

isoutamo
SplunkTrust
SplunkTrust
You should read those above links. Those describe how it should do.
0 Karma
Get Updates on the Splunk Community!

Aligning Observability Costs with Business Value: Practical Strategies

 Join us for an engaging Tech Talk on Aligning Observability Costs with Business Value: Practical ...

Mastering Data Pipelines: Unlocking Value with Splunk

 In today's AI-driven world, organizations must balance the challenges of managing the explosion of data with ...

Splunk Up Your Game: Why It's Time to Embrace Python 3.9+ and OpenSSL 3.0

Did you know that for Splunk Enterprise 9.4, Python 3.9 is the default interpreter? This shift is not just a ...