Not able to use Grok pattern in Graylog but works in extractor

Never mind, I have got the solution here:

Basically I had to use double escapes on all special characters.