elasticsearch


Can we use a Unix Timestamp as _timestamp field in elasticsearch


When we create time-based indices, elasticsearch/kibana need a field named "_timestamp".
I found that this field should be a string.
But in my log, Unix Timestamp is a necessary segment.
Yes you can store unix timestamp in Date type fields. But make sure you use proper format like epoch_millis for timestamp in millis and epoch_second for timestamp in seconds.
Example mapping for timestamp field which stores unix timestamp in seconds.
PUT my-index
{
"mappings": {
"my-type": {
"properties": {
"timestamp": {
"type": "date",
"format": "epoch_second"
}
}
}
}
}
You can find more information here

Related Links

Elastic search date range max, min date
Elastic search river mongodb _meta returning action not found error
Seeing many open Elasticsearch connections even after using singleton pattern
What would be a good approach for sending logs from multiple servers a centralized logging server?
does elasticsearch support queries of queries?
Data modelling with elastic search
match or term query on a long property for exact match?
Updating filtered documents in elasticsearch
Testing ElasticSearch custom analyzers
timestamp issue in elasticsearch
Elasticsearch NEST client singleton usage
Elasticsearch: suggest users based on likes
Set every property type to not_analyzed for custom object
How to tell ElasticSearch to create nested fields
Elasticsearch minimum master nodes
How to create an Elasticsearch index without word-splitting?

Categories

HOME
opengl
knockout.js
memory
windows-8.1
yii
softlayer
operating-system
odata
docker-cloud
cryptography
azure-mobile-services
position
graphql-js
cisco
jpa-criteria
hystrix
nexus3
vimeo
jquery-select2-4
amazon-elb
pywinauto
amazon-mws
activeadmin
el
acl
web-push
hdmi
sales
amazon-iam
progid
rust-cargo
john-the-ripper
rspec-rails
creation
nppexec
aurelia-cli
cartopy
django-smart-selects
selenide
google-now
reset
export-to-pdf
flowchart
uipickerview
resampling
latexml
type-inference
nomad
qvtkwidget
.net-micro-framework
directwrite
winston
google-news
nivo-slider
boost-compute
elastic4s
controllers
msg
android-sdcard
gnucash
wicked-pdf
codecharge
preferenceactivity
okta-api
vim-plugin
gdl
outlook.com
astropy
http.client
espresso
alwayson
console.log
baseadapter
iodocs
image-rotation
ecos
treeline
lync-2010
infinite
application-server
virtual-channel
libxml-js
node.js-stream
spiral
examine
itunes-sdk
system-requirements
spark-view-engine
clearinterval
border-box
kobold2d
series-40
firefly-mv
rtd
channelfactory
urchin
resharper-5.0
rawcontacts
fxruby
suggestbox
levels

Resources

Encrypt Message