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


(Tshepo Moganedi) #1

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


(Magnus B├Ąck) #2

Have you tried using the grok constructor web site?


(Tshepo Moganedi) #3

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


(system) #4

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