Any grok pattern to extract only uppercase from a string?

For example, I would like to get only ERROR, HINT, and STATEMENT from below strings

postgresERROR
postgresHINT
postgresSTATEMENT

If use "%{WORD:log_type}", then I get full string as below, but I am interested in only uppercase word. Please suggest if there are any other ways.

{
"log_type": [
"postgresERROR"
]
}

Thanks!

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.