Can anyone help me getting right Grok pattern to retrieve only id value from below sample logs(only message part) from nifi
- o.a.n.c.s.StandardControllerServiceNode StandardControllerServiceNode[service=DBCPConnectionPool[id=5609ac16-0174-1000-eeee-ffffd19aae44]
- o.a.n.c.s.StandardControllerServiceNode Failed to invoke @OnEnabled method of DBCPConnectionPool[id=5609ac16-0174-1000-hhhh-ffffd19aae44]
- o.a.n.c.s.StandardControllerServiceNode Failed to invoke @OnEnabled method of DBCPConnectionPool[id=5609ac16-0174-1000-gggg-ffffd19aae44]*
I have tried using the below pattern but it is retrieving the whole message but unable to get id value separately
- %{TIMESTAMP_ISO8601:timestamp} %{LOGLEVEL:severity} [%{DATA:thread}] %{DATA:class} %{GREEDYDATA:message}
You can use something like below that captures the UUID from the log.
It should give an output like below
given that the sample log entry is