How do I extract error messages from nifi logs?
log 1:
2018-07-30 18:43:32,656 ERROR [Timer-Driven Process Thread-8] o.a.n.p.a.storage.ListAzureBlobStorage ListAzureBlobStorage[id=1c111111-0164-1000-ca9e-6d37fd307870] Failed to perform listing on remote host due to java.io.IOException: com.microsoft.azure.storage.StorageException: The specified container does not exist.: {}
extract 1:
com.microsoft.azure.storage.StorageException
log 2:
2018-07-30 17:22:13,282 ERROR [Timer-Driven Process Thread-8] o.a.n.p.a.storage.PutAzureBlobStorage PutAzureBlobStorage[id=ae11111b-3cfa-1cba-ce19-c38a228875a9] Failed to put Azure blob : java.lang.IllegalArgumentException: The argument must not be null or an empty string. Argument name: blobName.
extract 2:
java.lang.IllegalArgumentException
This is my grok now.
grok {
match => {
"message" => "%{NOTSPACE:log_date} %{NOTSPACE:log_time} %{NOTSPACE:log_level} %{GREEDYDATA:log_text}"
}
}