Date field with unix timestamp for date histogram

Hi there,

I want to put a date mapping on a field that is actually a long unix
timestamp (in seconds). I came across this question at Stack Overflow

I can't find the right date format (epoch timestamp) here .

Apart from that I would prefer storing the seconds, instead of
milliseconds. However the latter would be something I can overcome.

Who can help me out?

Best regards,

Robin Verlangen
Data Architect

Disclaimer: The information contained in this message and attachments is
intended solely for the attention and use of the named addressee and may be
confidential. If you are not the intended recipient, you are reminded that
the information remains the property of the sender. You must not use,
disclose, distribute, copy, print or rely on this e-mail. If you have
received this message in error, please contact the sender immediately and
irrevocably delete this message and any copies.

You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
For more options, visit