Narendra522
Narendra522

Reputation: 167

Logstash Grok Pattern

I am new to logstash and trying to custom GROK one log file could some one please guide me on how to custom grok this log.

Log entry:

configmgr.service.configservice - revoke_app_config - Revoking config for app

I want to grok it in such a way that it should populate the below fields as:

PROGMODULE = configmgr.service.configservice PROGBLOCK = revoke_app_config ACTION = Revoking config for app

Upvotes: 0

Views: 152

Answers (1)

aairey
aairey

Reputation: 310

Have you tried something like below?

%{NOTSPACE:PROGMODULE} - %{WORD:PROGBLOCK} - %{GREEDYDATA:ACTION}

Upvotes: 1

Related Questions