# Filebeat checkpoint module not getting data from syslog

**URL:** <https://discuss.elastic.co/t/filebeat-checkpoint-module-not-getting-data-from-syslog/298864>\
**Category:** Beats\
**Tags:** beats-module, filebeat\
**Created:** [March 4, 2022, 4:30pm UTC](https://discuss.elastic.co/t/filebeat-checkpoint-module-not-getting-data-from-syslog/298864 "2022-03-04T16:30:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mfloris](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mfloris/32/100500_2.png) [@mfloris](https://discuss.elastic.co/u/mfloris)\
**Post date:** [March 4, 2022, 4:30pm UTC](https://discuss.elastic.co/t/filebeat-checkpoint-module-not-getting-data-from-syslog/298864/1 "2022-03-04T16:30:50Z")

</div>

I'm trying send CheckPoint Firewall logs to Elasticsearch 8.0.  
I have machine A 192.168.1.123 running Rsyslog receiving logs on port 514 that logs to a file and machine B 192.168.1.234 running Elasticsearch and Kibana. They are both Rocky Linux 8.5. For test purposes, firewalld is down and SELinux is set to Permissive on machine B

I was able to configure `/etc/filebeat/modules.d/checkpoint.yml` to read from file on machine A and send to Elasticsearch on machine B

```
- module: checkpoint
  firewall:
    enabled: true
    var.input: file
    var.paths: ["/rsyslog/Checkpoint.log"]

```

This is the relevant portion of `/etc/filebeat/filebeat.yml` on machine A:

```auto
    output.elasticsearch:
      hosts: ["machineB.mydomain.dom:9200"]
      protocol: "https"
      username: "elastic"
      password: "mypassword"
      ssl.verification_mode: none

```

If I check `/var/lib/filebeat/registry/filebeat/log.json` on machine A I see lots of lines including the field `"source":"/rsyslog/Checkpoint.log"` and if I browse Kibana on machine B I see the logs.

THE PROBLEM:

I would like to host the Elastic Stack all on machine B, therefore I configured Rsyslog to forward the logs from machine A to machine B on port 9001 and installed Filebeat on machine B.

`tcpdump` on machine B shows that the logs are being received

```auto
    16:49:32.478830 IP 192.168.1.123.46757 > 192.168.1.234.9001: UDP, length 833
    16:49:32.478853 IP 192.168.1.123.46757 > 192.168.1.234.9001: UDP, length 960
    16:49:32.478966 IP 192.168.1.123.46757 > 192.168.1.234.9001: UDP, length 960

```

This is the configuration of `/etc/filebeat/modules.d/checkpoint.yml` on machine B:

```auto
    - module: checkpoint
      firewall:
        enabled: true
        var.input: syslog
        var.syslog_host: 0.0.0.0
        var.syslog_port: 9001

```

And this is the relevant portion of `/etc/filebeat/filebeat.yml` on machine B:

```auto
    output.elasticsearch:
      hosts: ["localhost:9200"]
      protocol: "https"
      username: "elastic"
      password: "mypassword"
      ssl.verification_mode: none

```

`filebeat test output` returns OK

With this configuration, `/var/lib/filebeat/registry/filebeat/log.json` on machine B is empty, and if I browse Kibana I can see `filebeat-8.0.1-checkpoint-firewall-pipeline` under "Stack Management" \> "Ingest Pipelines" but no logs are received if I go to "Home" \> "Analytics" \> "Discover"

I also tried to increase the log verbosity of filebeat by enabling

```auto
    logging.level: debug
    logging.selectors: [beat, publisher, service]

```

in `/etc/filebeat/filebeat.yml` but I don't see anything useful in the files inside `/var/log/filebeat/`

The port UDP/9001 appears to be open if I list the listening ports

```auto
#ss -ulnp
State Recv-Q Send-Q Local Address:Port Peer Address:Port Process
UNCONN 0 0 *:9001 *:* users:(("filebeat",pid=39331,fd=12))

```

I don't know where else to look

---

<div class="post-metadata">

**Author:** ![mfloris](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mfloris/32/100500_2.png) [@mfloris](https://discuss.elastic.co/u/mfloris)\
**Post date:** [March 4, 2022, 5:36pm UTC](https://discuss.elastic.co/t/filebeat-checkpoint-module-not-getting-data-from-syslog/298864/2 "2022-03-04T17:36:36Z")

</div>

Apparently

`var.syslog_host: 0.0.0.0`

does not work.

I had luck with either

`var.syslog.host: 192.168.1.234`

or

`var.syslog_host: machineB.mydomain.dom`

---

<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:** [April 1, 2022, 7:37pm UTC](https://discuss.elastic.co/t/filebeat-checkpoint-module-not-getting-data-from-syslog/298864/3 "2022-04-01T19:37:31Z")

</div>

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