Hi there,
I'm sorry, there is plenty of similar topic but none match my problem.
I'm trying to set un an ELK system, i'm running with a ubuntu14.04 LT, a postgres database and logstash.
In my databse i got this :
this is my ES index :
curl -X PUT http://localhost:9200/ligneserac/_mapping/serac -d '
{
"serac":{
"date_detection": false,
"properties": {
"id":{
"index" : "not_analyzed",
"type" : "string"
},
"scan_date":{
"index" : "not_analyzed",
"type" : "date",
"format" : "yyyy-MM-dd'T'hh:mm:ssZZ"
},
"scan_cab":{
"index" : "not_analyzed",
"type" : "string"
},
"line_id":{
"index" : "not_analyzed",
"type" : "string"
},
"nom_product":{
"index" : "not_analyzed",
"type" : "string"
},
"num_lot":{
"index" : "not_analyzed",
"type" : "string"
}
}
}
}'
The problem is :
when i don't add a date format - ma data seem to not be transfered to ES
when i use this format : "yyyy-MM-dd'T'HH:mm:ssZZ" which match my database date format, i have this error :
When i use the same format but without the 'T' : "yyyy-MM-dd HH:mm:ssZZ" or "yyyy/MM/dd HH:mm:ssZZ" or whatever do not creat an index error - i got this error on each entry of my database :
the only solution i find to put my entire database to ES is to not use the time base event option in kibana
Thanks for reading,
Josselin.