@Patrick_Mueller here are the mappings
{
"mylogs-2021-03-10" : {
"mappings" : {
"properties" : {
"@timestamp" : {
"type" : "date",
"format" : "date_time"
},
"@version" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
},
"client_ip" : {
"type" : "text"
},
"facility" : {
"type" : "long"
},
"facility_label" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
},
"host" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
},
"message" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
},
"priority" : {
"type" : "long"
},
"remote_host" : {
"type" : "text"
},
"severity" : {
"type" : "long"
},
"severity_label" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
},
"syslog_event_id" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
},
"syslog_timestamp" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
},
"tags" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
},
"type" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
}
}
}
}
}
Index pattern:
mylogs-*
Also when I do a basic search GET mylogs-2021-03-10/_search
the data has this format (IPs redacted):
{
"took" : 872,
"timed_out" : false,
"_shards" : {
"total" : 1,
"successful" : 1,
"skipped" : 0,
"failed" : 0
},
"hits" : {
"total" : {
"value" : 10000,
"relation" : "gte"
},
"max_score" : 1.0,
"hits" : [
{
"_index" : "mylogs-2021-03-10",
"_type" : "_doc",
"_id" : "KlJhHHgBE0Wkqp67vQIq",
"_score" : 1.0,
"_source" : {
"remote_host" : "<redacted_fqdn>",
"client_ip" : "<redacted_client_ip>",
"type" : "syslog",
"priority" : 0,
"facility" : 0,
"facility_label" : "kernel",
"host" : "<redacted_server_ip>",
"message" : "<30>Mar 10 12:51:07 unbound: [58351:0] info: <redacted_client_ip> <redacted_fqdn> A IN",
"@version" : "1",
"severity_label" : "Emergency",
"severity" : 0,
"@timestamp" : "2021-03-10T13:44:30.280Z",
"syslog_timestamp" : "Mar 10 12:51:07",
"syslog_event_id" : "30"
}
},
...
}