# Struggling with sonicwall module

**URL:** https://discuss.elastic.co/t/struggling-with-sonicwall-module/315595
**Category:** Beats
**Tags:** filebeat
**Created:** [September 30, 2022, 4:10pm UTC](https://discuss.elastic.co/t/struggling-with-sonicwall-module/315595 "2022-09-30T16:10:31Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Philip\_Thomson1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/philip_thomson1/32/53372_2.png) [@Philip\_Thomson1](https://discuss.elastic.co/u/Philip_Thomson1)
#### Post date: [September 30, 2022, 4:10pm UTC](https://discuss.elastic.co/t/struggling-with-sonicwall-module/315595/1 "2022-09-30T16:10:31Z")

</div>

I am sure this is something silly, but I have been banging my head on this, I am trying to use the sonicwall module on filebeat 8.4

This is the sonicwall.yml:

```auto
# Module: sonicwall
# Docs: https://www.elastic.co/guide/en/beats/filebeat/main/filebeat-module-sonicwall.html

- module: sonicwall
  firewall:
    enabled: true

    # Set which input to use between udp (default), tcp or file.
    var.input:
     var.syslog_host: 
     - 10.100.100.121
     var.syslog_port: 
     - 25514

    # Set paths for the log files when file input is used.
    # var.paths:

    # Toggle output of non-ECS fields (default true).
    # var.rsa_fields: true

    # Set custom timezone offset.
    # "local" (default) for system timezone.
    # "+02:00" for GMT+02:00
      #var.tz_offset: local

```

and this is the error I get:

```auto
Sep 30 12:02:59 TS-ELK01 filebeat[316482]: {"log.level":"error","@timestamp":"2022-09-30T12:02:59.882-0400","log.logger":"reload","log.origin":{"file.name":"cfgfile/list.go","file.line":109},"message":"Error creating runner from config: could not create module registry for filesets: error getting config for fileset sonicwall/firewall: Error interpreting the template of the input: template: text:1:6: executing \"text\" at <eq .input \"file\">: error calling eq: uncomparable type map[string]interface {}: map[var:map[syslog_host:[10.100.100.121] syslog_port:[25514]]]","service.name":"filebeat","ecs.version":"1.6.0"}

```

I have checked the yaml with yaml lint and it says it is valid, but I must be missing something here.

Does anyone else have any input to help me resolve this?

---

<div class="post-metadata">

### Author: ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)
#### Post date: [September 30, 2022, 9:23pm UTC](https://discuss.elastic.co/t/struggling-with-sonicwall-module/315595/2 "2022-09-30T21:23:33Z")

</div>

> [@Philip\_Thomson1](#):
>
> ```auto
> var.input:
> var.syslog_host: 
> - 10.100.100.121
> var.syslog_port: 
> - 25514
> 
> ```

Looks weird... pretty sure host and port are not arrays / lists see [here](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-module-sonicwall.html)

```auto
    var.input:
    var.syslog_host: 10.100.100.121
    var.syslog_port: 25514

```

or

```auto
    var.input:
    var.syslog_host: 0.0.0.0
    var.syslog_port: 25514

```

---

<div class="post-metadata">

### Author: ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)
#### Post date: [October 1, 2022, 12:51am UTC](https://discuss.elastic.co/t/struggling-with-sonicwall-module/315595/3 "2022-10-01T00:51:01Z")

</div>

I think that the issue is that the `yml` does not look right, as @stephenb mentioned, if you use in this format you are telling the config parser that the `var.syslog_port` and `var.syslog_host` are arrays, and the parser probably is waiting just a string.

If you look in the config file in the [github repository](https://github.com/elastic/beats/blob/main/x-pack/filebeat/module/sonicwall/_meta/config.yml), it is different.

---

<div class="post-metadata">

### Author: ![Philip\_Thomson1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/philip_thomson1/32/53372_2.png) [@Philip\_Thomson1](https://discuss.elastic.co/u/Philip_Thomson1)
#### Post date: [October 3, 2022, 11:32am UTC](https://discuss.elastic.co/t/struggling-with-sonicwall-module/315595/4 "2022-10-03T11:32:07Z")

</div>

Thanks everyone, I was going crosseyed it had been a long day, I switched it to an array as I was getting that error, however, I suspect I had a problem in my yaml before that, and then I started chasing the wrong squirrel up the wrong tree.

Thanks to you guys I have reset and got it working, sometimes it just takes that 2nd set of eyes

---

<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: [October 31, 2022, 1:32pm UTC](https://discuss.elastic.co/t/struggling-with-sonicwall-module/315595/5 "2022-10-31T13:32:34Z")

</div>

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