The config is loading and starting. When I had a tab in ymal there was an issue with the starting of filebeat.
the weird thing is when I do something like this
POST filebeat-7.9.2-cisco-2020.11.03/_search
{
"size": 1,
"sort": { "@timestamp": "desc"},
"query": {
"match": {"message":"failed to find message"}
}
}
This is a document I get back.
{
"took" : 1202,
"timed_out" : false,
"_shards" : {
"total" : 2,
"successful" : 2,
"skipped" : 0,
"failed" : 0
},
"hits" : {
"total" : {
"value" : 8374,
"relation" : "eq"
},
"max_score" : null,
"hits" : [
{
"_index" : "filebeat-7.9.2-cisco-2020.11.03",
"_type" : "_doc",
"_id" : "EYtVkHUBMI-dbCtF8X18",
"_score" : null,
"_source" : {
"agent" : {
"hostname" : "name",
"name" : "name",
"id" : "4b069842-f4a1-4420-9a89-7e093d2cba6f",
"ephemeral_id" : "0285f0b0-01e2-4691-9171-18e5a781cae2",
"type" : "filebeat",
"version" : "7.9.2"
},
"log" : {
"file" : {
"path" : "/var/log/syslog/name.log"
},
"original" : "%ASA-6-302014: Teardown TCP connection 23913857 for name-1:ip-2/49903 to name-2:ip-3/23 duration 25:54:08 bytes 4095435 TCP FINs",
"offset" : 2207,
"level" : "informational"
},
"message" : "Teardown TCP connection 23913857 for name-1:ip-2/49903 to name-2:ip-3/23 duration 25:54:08 bytes 4095435 TCP FINs",
"fileset" : {
"name" : "asa"
},
"error" : {
"message" : [
"Provided Grok expressions do not match field value: [Teardown TCP connection 23913857 for name-1:ip-2/49903 to name-2:ip-3/23 duration 25:54:08 bytes 4095435 TCP FINs]"
]
},
"tags" : [
"cisco-asa",
"forwarded"
],
"input" : {
"type" : "log"
},
"@timestamp" : "2020-11-03T23:59:04.000+01:00",
"ecs" : {
"version" : "1.5.0"
},
"service" : {
"type" : "cisco"
},
"host" : {
"hostname" : "name",
"os" : {
"kernel" : "value",
"codename" : "Core",
"name" : "CentOS Linux",
"family" : "redhat",
"version" : "7 (Core)",
"platform" : "centos"
},
"containerized" : false,
"ip" : [
"ip-1"
],
"id" : "41c28f6d08964fcab092cb65e2cc5c18",
"mac" : [
"00:00:00:00:00:00"
],
"architecture" : "x86_64"
},
"event" : {
"severity" : 6,
"timezone" : "+01:00",
"module" : "cisco",
"action" : "flow-expiration",
"dataset" : "cisco.asa"
},
"cisco" : {
"asa" : {
"message_id" : "302014"
}
}
},
"sort" : [
1604444344000
]
}
]
}
}
I have just noticed that this probably is not taking form field I thought It was.