# Filebeat sonicwall module not parsing correctly many messages

**URL:** https://discuss.elastic.co/t/filebeat-sonicwall-module-not-parsing-correctly-many-messages/268232
**Category:** Beats
**Tags:** filebeat
**Created:** [March 24, 2021, 3:15pm UTC](https://discuss.elastic.co/t/filebeat-sonicwall-module-not-parsing-correctly-many-messages/268232 "2021-03-24T15:15:52Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Rodrigo\_Bernardo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rodrigo_bernardo/32/43935_2.png) [@Rodrigo\_Bernardo](https://discuss.elastic.co/u/Rodrigo_Bernardo)
#### Post date: [March 24, 2021, 3:15pm UTC](https://discuss.elastic.co/t/filebeat-sonicwall-module-not-parsing-correctly-many-messages/268232/1 "2021-03-24T15:15:52Z")

</div>

Hello there,

Our Sonicwall generates this message:  
\<110\> id=yyyy sn=C0EAE4F9FB00 time="2021-03-24 14:35:31 UTC" fw=xx.xx.xx.xx pri=6 c=262144 m=98 msg="Connection Opened" app=49177 appName="General HTTPS" n=218510470 src=xx.xx.xx.xx:55329:X22-V2100 dst=xx.xx.xx.xx:443:X20 proto=tcp/https sent=52

and the parser does this:  
observer.ingress.interface.name: X22-V2100 dst=xx.xx.xx.xx:443:X20 proto=tcp/https sent=52

by doing that we lose the destination, proto and sent fields.

We are using filebeat 7.11.2

Do you have any ideas on this? Is this a bug? How do we report?

Thanks,  
Rodrigo.

---

<div class="post-metadata">

### Author: ![donasmello](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/donasmello/32/86250_2.png) [@donasmello](https://discuss.elastic.co/u/donasmello)
#### Post date: [March 29, 2021, 10:02pm UTC](https://discuss.elastic.co/t/filebeat-sonicwall-module-not-parsing-correctly-many-messages/268232/2 "2021-03-29T22:02:22Z")

</div>

I have also had some parsing issues with the sonicwall module that is being pushed from the integration using fleet management. I was getting a dissect error message with every log message. I ended up starting to work on my own filbeat module since I'm hoping that we can move all of our sonicwall deployments to elastic. It works on the firewall that I have been testing on with firmware version 6.5.4.7. My first time contributing to beats and the documentation I have seen goes with the current method of creating filbeat modules vs. the new integration methods. -- at least I don't see any references to the integration fleet methods. Still plan on creating the pull request in the next day or two. I modeled mine after the Fortinet firewall integration module which works well for Fortigates and it seems much simpler than the current SonicWall one. I haven't seen any other posts indicating that someone is working on the sonicwall module so hopefully mine will be helpful

---

<div class="post-metadata">

### Author: ![donasmello](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/donasmello/32/86250_2.png) [@donasmello](https://discuss.elastic.co/u/donasmello)
#### Post date: [March 29, 2021, 11:52pm UTC](https://discuss.elastic.co/t/filebeat-sonicwall-module-not-parsing-correctly-many-messages/268232/3 "2021-03-29T23:52:29Z")

</div>

> <https://github.com/elastic/integrations/blob/master/CONTRIBUTING.md>

I did actually find this for reference if anyone stumbles on this for developing integrations. I just didn’t google very well. Will start working on this as well.

---

<div class="post-metadata">

### Author: ![jamie.hynds](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jamie.hynds/32/84205_2.png) [@jamie.hynds](https://discuss.elastic.co/u/jamie.hynds)
#### Post date: [March 30, 2021, 10:59am UTC](https://discuss.elastic.co/t/filebeat-sonicwall-module-not-parsing-correctly-many-messages/268232/4 "2021-03-30T10:59:58Z")

</div>

Thanks for working on this @donasmello. Look forward to seeing your PR!

If you have any questions on contributing just let us know. Incase you weren't aware, we have an Elastic Contributor Program to reward contributors 🙂

---

<div class="post-metadata">

### Author: ![legoguy1000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/legoguy1000/32/54301_2.png) [@legoguy1000](https://discuss.elastic.co/u/legoguy1000)
#### Post date: [April 7, 2021, 10:10pm UTC](https://discuss.elastic.co/t/filebeat-sonicwall-module-not-parsing-correctly-many-messages/268232/5 "2021-04-07T22:10:33Z")

</div>

Did u end up working this change and opening a PR?

---

<div class="post-metadata">

### Author: ![donasmello](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/donasmello/32/86250_2.png) [@donasmello](https://discuss.elastic.co/u/donasmello)
#### Post date: [April 19, 2021, 3:42am UTC](https://discuss.elastic.co/t/filebeat-sonicwall-module-not-parsing-correctly-many-messages/268232/6 "2021-04-19T03:42:23Z")

</div>

Yes I have been working on the update for the fleet integration. I haven’t opened the PR yet but was hoping to this week.

---

<div class="post-metadata">

### Author: ![donasmello](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/donasmello/32/86250_2.png) [@donasmello](https://discuss.elastic.co/u/donasmello)
#### Post date: [April 24, 2021, 6:28pm UTC](https://discuss.elastic.co/t/filebeat-sonicwall-module-not-parsing-correctly-many-messages/268232/7 "2021-04-24T18:28:01Z")

</div>

I was able to validate the logs that I collect from a lab sonicwall I have using the integration updates I made. I submitted the PR today. My first time submitting so there might be issues but hopefully anything that comes up I can work through.

> <https://github.com/elastic/integrations/pull/944>
>
> Type of Change: Enhancement
> 
> \## What does this PR do?
> 
> I was having issues with the Sonicwall integration parsing logs for Sonicwall firewalls on firmware 6.5.x. Was getting a dissect parse error for every log. I referenced the Fortinet firewall integration to update the Sonicwall firewall integration to parse Sonicwall firewall logs. Pointed a lab Sonicwall firewall to a host with the integration installed and validated log collection.
> 
> \## Checklist
> 
> \- \[x \] I have reviewed \[tips for building integrations\](https://github.com/elastic/integrations/blob/master/docs/tips\_for\_building\_integrations.md) and this pull request is aligned with them.
> \- \[x \] I have verified that all data streams collect metrics or logs.
> \- \[x\] I have added an entry to my package's \`changelog.yml\` file.
> 
> \## Author's Checklist
> 
> \- \[\] Validate that the sonicwall integration works via elastic-package registry using the log file method. Can use example logs in the test file.
> 
> \## How to test this PR locally
> 
> Follow the contributing guide and use the sonicwall integration 
> 
> https://github.com/elastic/integrations/blob/master/CONTRIBUTING.md
> 
> \## Related issues
> 
> https://discuss.elastic.co/t/filebeat-sonicwall-module-not-parsing-correctly-many-messages/268232/5

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [May 22, 2021, 8:28pm UTC](https://discuss.elastic.co/t/filebeat-sonicwall-module-not-parsing-correctly-many-messages/268232/8 "2021-05-22T20:28:43Z")

</div>

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