My Catalina logs contains timestamp in this format:-
Mar 23, 2016 11:33:14 AM org.apache.catalina.core.AprLifecycleListener init
My goal is to create Date Histogram using timestamp field in kibana.
Since timestamp field is taken as string type by default in kibana. So, timestamp field was not visible when I selected Date Histogram I tried to define the mapping as follows using joda docs:-
POST /catalina_logs_20160330
{"settings":{"number_of_shards":1},"mappings":{"type1"
:{"_source":{"enabled":false},"properties":{
"timestamp":{"type":"date","format":"MMM dd, YYYY hh:mm:ss"},"className":{"type":"string","index":"not_analyzed"},
"methodName":{"type":"string","index":"not_analyzed"},
"message":{"type":"string","index":"not_analyzed"}
}}
}}
But what is the format for AM or PM ???