Inclusion of ingest timestamp in elasticsearch index


(Pratheek ) #1

I have come across ,including ingest timestamp value of a record to an ES index,but not clear on that.Can anyone help me out on adding the ingest timestamp to the index.

Regards,
Pratheek


(David Pilato) #2

If you need to add the current date to a document at index time, you have 2 choices:

  • Do that on your side. Just add the date in the document before sending it to elasticsearch
  • Use an ingest node script processor to compute that date on elasticsearch side. Note that this one will be slower than doing that on your side.

(Pratheek ) #3

Thanks David,

In case of option 1 ,I need to generate a field having present timestamp and index it right,but won't there be any difference between the original and indexed time (incase of any latency in indexing).


(David Pilato) #4

Yeah. The network latency will add some delay I guess.


(Pratheek ) #5

Thanks again!!! ,the ingest node processor worked out well for me.


(system) #6

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.