I insert this pattern to find my object when I search in kibana
curl -XPUT 'localhost:9200/exception_index?pretty' -H 'Content-Type: application/json' -d'
{
"mappings": {
"siam_exception": {
"dynamic": "true",
"properties": {
"Title": { "type": "text" },
"Date&Time": { "type": "text" },
"Tags": { "type": "text" },
"Level": { "type": "text" },
"Message": {
"dynamic": "true",
"properties": {
"Root": { "type": "text" },
"ExceptionList": { "type": "text" }
}
}
}
}
}
}
'
and this is my exception.log
"siam_exception":{
"Title": "exception",
"Date&Time": "2018-01-21 09:52:20.759950",
"Tags": "SiamCore",
"Level": "Fatal",
"Message":[
{
"Root": "( ['MQROOT' : 0x7f0a902b2d80]
(0x01000000:Name ):Properties = ( ['MQPROPERTYPARSER' : 0x7f0a902bffa0]
(0x03000000:NameValue):MessageSet = 'SIAMCOMMONMSG' (CHARACTER)",
"ExceptionList": "(0x03000000:NameValue):ReplyIdentifier = X'000000000000000000000000000000000000000000000000' (BLOB)","
}
]
}
but kibana find nothing when I search *
even if I omit ' "siam_exception": ' from first line of exception.log nothing change
curl localhost:9200/_cat/indices?pretty
yellow open exception_index el6BhZjASvieULHCd3DzRw 5 1 0 0 650b 650b
when I put my object manually in elasticsearch it work fine
curl -XPUT 'localhost:9200/exception_index/siam_exception/1?pretty' -H 'Content-Type: application/json' -d'
{
"Title": "This doc adds a new field",
"Date&Time": "2018-01-21 09:52:20.654654",
"Tags": ["SiamCore","SiamGetaway"],
"Level": "Fatal",
"Message": [{
"Root" : " test 1111",
"ExceptionList" : "test1"
}]
}
'
my query for search
curl -XGET 'localhost:9200/_search?pretty' -H 'Content-Type: application/json' -d'
{
"query": {
"query_string" : {
"default_field": "Message.Root",
"query" : "test*"
}
}
}
'
the result OK but it doesn't work when object is in exception.log and I want to search it in kibana
what is my problem
thank you