Need help to get only message

logs logging messages in following pattern
2021-11-03 05:03:22,773,773 DEBUG [controllers.requests] log are logged in to system.

i just want to extract following things so i can store in separate variables :
Time stamp = 2021-11-03 05:03:22
message = log are logged in to system
level = DEBUG

please help me to do this

This is what the grok filter is for.

Try this:

%{DATE} %{TIME} %{NOTSPACE:log_level} %{NOTSPACE:type} %{GREEDYDATA:log_message}

If you have others I suggest using this website to help you construct your patterns

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