Hi Jochen,
I have changed the Json as below and after executing, i could not find the custom mapping in the index
{
"template": "graylog_*",
"mappings" : {
"message" : {
"properties" : {
"EventDate" : {
"type" : "date",
"format": "strict_date_optional_time"
}
}
}
}
}
curl -X GET 'http://localhost:9200/graylog_deflector/_mapping?pretty' {
"graylog_404" : {
"mappings" : {
"message" : {
"dynamic_templates" : [ {
"internal_fields" : {
"mapping" : {
"index" : "not_analyzed",
"type" : "string"
},
"match" : "gl2_*"
}
}, {
"store_generic" : {
"mapping" : {
"index" : "not_analyzed"
},
"match" : "*"
}
} ],
"properties" : {
"Location" : {
"type" : "string",
"index" : "not_analyzed"
},
"PA_Risk" : {
"type" : "string",
"index" : "not_analyzed"
},
"PA_Threat" : {
"type" : "string",
"index" : "not_analyzed"
},
"ReceiveTime" : {
"type" : "string",
"index" : "not_analyzed"
},
"SerialNumber" : {
"type" : "string",
"index" : "not_analyzed"
},
"Subtype" : {
"type" : "string",
"index" : "not_analyzed"
},
"Type" : {
"type" : "string",
"index" : "not_analyzed"
},
"application_name" : {
"type" : "string",
"index" : "not_analyzed"
},
"connection_id" : {
"type" : "long"
},
"connection_requests" : {
"type" : "long"
},
"device_product" : {
"type" : "string",
"index" : "not_analyzed"
},
"device_vendor" : {
"type" : "string",
"index" : "not_analyzed"
},
"device_version" : {
"type" : "string",
"index" : "not_analyzed"
},
"dvc" : {
"type" : "string",
"index" : "not_analyzed"
},
"event_class_id" : {
"type" : "string",
"index" : "not_analyzed"
},
"facility" : {
"type" : "string",
"index" : "not_analyzed"
},
"from_nginx" : {
"type" : "string",
"index" : "not_analyzed"
},
"full_message" : {
"type" : "string",
"analyzer" : "standard"
},
"gl2_remote_ip" : {
"type" : "string",
"index" : "not_analyzed"
},
"gl2_remote_port" : {
"type" : "string",
"index" : "not_analyzed"
},
"gl2_source_input" : {
"type" : "string",
"index" : "not_analyzed"
},
"gl2_source_node" : {
"type" : "string",
"index" : "not_analyzed"
},
"http_method" : {
"type" : "string",
"index" : "not_analyzed"
},
"http_referer" : {
"type" : "string",
"index" : "not_analyzed"
},
"http_response_code" : {
"type" : "long"
},
"http_user_agent" : {
"type" : "string",
"index" : "not_analyzed"
},
"http_version" : {
"type" : "string",
"index" : "not_analyzed"
},
"ingest_time" : {
"type" : "date",
"format" : "strict_date_time"
},
"level" : {
"type" : "long"
},
"message" : {
"type" : "string",
"analyzer" : "standard"
},
"millis" : {
"type" : "double"
},
"msg" : {
"type" : "string",
"index" : "not_analyzed"
},
"name" : {
"type" : "string",
"index" : "not_analyzed"
},
"nginx_access" : {
"type" : "string",
"index" : "not_analyzed"
},
"process_id" : {
"type" : "string",
"index" : "not_analyzed"
},
"remote_addr" : {
"type" : "string",
"index" : "not_analyzed"
},
"remote_user" : {
"type" : "string",
"index" : "not_analyzed"
},
"request_path" : {
"type" : "string",
"index" : "not_analyzed"
},
"request_verb" : {
"type" : "string",
"index" : "not_analyzed"
},
"response_bytes" : {
"type" : "long"
},
"response_status" : {
"type" : "long"
},
"severity" : {
"type" : "string",
"index" : "not_analyzed"
},
"severity_number" : {
"type" : "long"
},
"source" : {
"type" : "string",
"analyzer" : "analyzer_keyword"
},
"src" : {
"type" : "string",
"index" : "not_analyzed"
},
"streams" : {
"type" : "string",
"index" : "not_analyzed"
},
"suser" : {
"type" : "string",
"index" : "not_analyzed"
},
"timestamp" : {
"type" : "date",
"format" : "yyyy-MM-dd HH:mm:ss.SSS"
},
"took_ms" : {
"type" : "long"
}
}
}
}
}
}
Can you please advise, if there is something wrong?
Thanks, Hema.