Sonicwall SMA logs Not able to parse values in Pipeline


Thanks for GrayLog! I’m trying to do the GeoIP rules to add the geo fields to my data. Followed the tutorial blog post (How to Set Up Graylog GeoIP Configuration | Graylog) and all seemed well after fixing some quotes issues. But in my pipeline rules it seems that when I setup this rule it cannot parse data out of the feilds in the message. Here is my code:

rule “GeoIP lookup: src”


let ipAddy = to_string($message.domain);

debug(concat("IP Addy: ", ipAddy));

let geo = lookup(“geoip”, to_string($message.src));

set_field(“src_ip_geo_location”, geo[“coordinates”]);

set_field(“src_ip_geo_country”, geo[“country”].iso_code);

set_field(“src_ip_geo_city”, geo[“city”].names.en);

let debug_message = concat("GeoIP from IP ", to_string($message.src));



What happens is the message$.src does not really exist since it fails the test and never runs the code. If I cheat and change the field to test for to “message” I can force the code to run but essentially message$.src is always blank (no value)

Here is what shows in my search when I look at the messages coming in from my appliance:

In search I can use the fieldnames to search no issue but in my rule no values…

I followed the instructions to install my server from the official docs on Centos7 and it seems like all works well, (version 4 of graylag and all recommended versions of ES and mogo).

Where should I check next? Thanks in advance.

It’s not clear, if you have field src with ip address somehow extracted from message. If not you have to use extractor (regex, GROK etc), or pipeline rule to first extract field src, and after then you can use it in your geoip pipeline rule.

If you have already extracted field src with ip address check your processing order in System - Configuration, so pipeline is after extractor, so you can use extracted field in pipeline.

Extractor was in place but thank you for that tip first! You were right that the processing order was not correct. Thank you so much for your help. I knew it was something simple but I didn’t know where to look!

  • Rafal

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