Grok pattern to extract username on %{GREEDYDATA:log}

Hi,

I am trying to strip out Username from the following line and put it in the variable:

2017-06-01 17:05:59,429 INFO - Obtaining UserName: [admin ] roles and privileges from DataBase.

What will be grok pattern for this line, Please help

Have you tried using the grok constructor web site?

yes, I have tried grok constructor, It does not give me right pattern.

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