# Filebeat Listening on IPV6

**URL:** <https://discuss.elastic.co/t/filebeat-listening-on-ipv6/263690>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [February 9, 2021, 7:32am UTC](https://discuss.elastic.co/t/filebeat-listening-on-ipv6/263690 "2021-02-09T07:32:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jasonkasih](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasonkasih/32/83613_2.png) [@jasonkasih](https://discuss.elastic.co/u/jasonkasih)\
**Post date:** [February 9, 2021, 7:32am UTC](https://discuss.elastic.co/t/filebeat-listening-on-ipv6/263690/1 "2021-02-09T07:32:53Z")

</div>

Good Day,

This is my first post in Elastic forum. Apologise for any mistake in formatting.

I'm encountering an issue around my filebeat listener only listening in ipv6 instead of ipv4. I understand it has something to do with Java Options settings. For logstash and elasticsearch, I could find the configuration files in /etc/default/\*, and set `LS_JAVA_OPTS="-Djava.net.preferIPv4Stack=true`. However for filebeat, I couldn't find the filebeat config file there. Any pointers are appreciated.

Thank You

filebeat.yml

```auto
filebeat.inputs:
    - type: syslog
      protocol.udp:
              host: "0.0.0.0:514"
      tags: ["usg"]

output.logstash:
    hosts: [127.0.0.1:5044]'

```

netstat

```auto
'Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
udp6 0 0 :::514 :::* -

```

---

<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:** [March 9, 2021, 9:33am UTC](https://discuss.elastic.co/t/filebeat-listening-on-ipv6/263690/2 "2021-03-09T09:33:10Z")

</div>

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