seanthegeek / graylog-fortigate-syslog

A Graylog Content Pack of dashboards for FortiGate syslog data
https://seanthegeek.net/1270/how-to-create-a-single-node-graylog-instance-and-analyze-fortigate-logs/
Apache License 2.0
34 stars 10 forks source link

received bytes and sent bytes in mega bytes or giga bytes #15

Open freeman123321 opened 2 months ago

freeman123321 commented 2 months ago

Hi, thank you for this very useful content pack. Could you please tell me how can I have new fields for received bytes and sent bytes in mega bytes or giga bytes? I tried to write new pipelines for it but every time I get error "incompatible types....double.... long in ...."

rule "ConvertBytesToGigabytes1" when has_field("rcvdbyte") then let MBytes = to_double($message.rcvdbyte); set_field("MBytes", MBytes /(1024*1024)); end

Capture