2

Its weird that GROK pattern is not parsing the string :

org.dozer.config.GlobalSettings.loadGlobalSettings

%{JAVACLASS:class}\.%{JAVAMETHOD:method}

I see compile error. Please suggest.

2 Answers 2

2

Try this:

%{GREEDYDATA:class}.%{WORD:method}

As you can see here it works.

Sign up to request clarification or add additional context in comments.

1 Comment

Yes that works but I want JAVAMETHOD to work as that's more precise to use :)
0

Seems that JAVAMETHOD is not found, I didn't have time to check if was removed or what's going on with it, but here you can see how it is done

So a quick work around is to create your own custom pattern

JAVAMETHOD (?:(<(?:cl)?init>)|[a-zA-Z$_][a-zA-Z$_0-9]*)

After that this works

example

2 Comments

But I see even in our application the same issue of not parsing the JAVAMETHOD is happening even though the pattern exists
For some reason is not loading this pattern, also this fails in the grok debugger.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.