Assistance with extractors

Before you post: Your responses to these questions will help the community help you. Please complete this template if you’re asking a support question.
Don’t forget to select tags to help index your topic!

1. Describe your incident:

Trying to create extractors

2. Describe your environment:

  • OS Information:
    Debian Bullseye

  • Package Version:

  • Service logs, configurations, and environment variables:
    Not Appicable

3. What steps have you already taken to try and solve the problem?

Tried to create various regex’s, and use available Groks, but have I have failed.
I can get the first ip address, but I am stumped on the second ip address and the ports.

4. How can the community help?


I am a newbie using Graylog, and would welcome a bit of assistance in extracting fields from the following messages

<129>Jun 13 06:34:34 DrayTek: [DOS][Block][Blocking List][>]


DrayTek: [DOS][Block][Blocking List][>]

The two IP address’s to be stored as new fields hackIp, ispIp for further analysis


<129>Jun 11 14:27:12 DrayTek: [DOS][Block][tcp_flag, scanner=non_syn_ack_rst][>][TCP][HLen=20, TLen=89, Flag=P, Seq=3197, Ack=0, Win=65535]

The two ip address’s and the associated ports

I am using the wizard to try to create the extractor on the input from the draytek, and place the extracted data into new fields

hackIp, hackPort, ispIp ispPort for further analysis



PS is not my isp address :slight_smile:

Helpful Posting Tips: Tips for Posting Questions that Get Answers [Hold down CTRL and link on link to open tips documents in a separate tab]

Hello Aimee,

Click on the Message > Create extractor then Select extractor Type : Grok Pattern

Then Paste :


Do the same thing with

Grok pattern for this:


it`s important to select “Named Captures Only”



Thanks for the assistance


Since updating to v4.3.2+313b6bc. this grok
and the other one you presented fail to work when tested. The input data format has not changed.
Any ideas why this has occurred?
Attached is a screen shot.

Kind Regards


Hello AimDev,

you have to verify if the fields are still getting extracted, if they are then the extractor is still working.

about the error message, please be sure to load the right message (load another message)

for this search for: “DOS” AND “Blocking List” then click on the message you will see the message-id and and the index