# Remote SYSLOG on the WAGO controllers

**URL:** <https://www.wago.community/t/remote-syslog-on-the-wago-controllers/725>\
**Category:** Hardware and Linux\
**Created:** [January 3, 2024, 9:59am UTC](https://www.wago.community/t/remote-syslog-on-the-wago-controllers/725 "2024-01-03T09:59:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![WagoThomas](https://sea2.discourse-cdn.com/flex016/user_avatar/www.wago.community/wagothomas/32/292_2.png) [@WagoThomas](https://www.wago.community/u/WagoThomas)\
**Post date:** [January 3, 2024, 9:59am UTC](https://www.wago.community/t/remote-syslog-on-the-wago-controllers/725/1 "2024-01-03T09:59:06Z")

</div>

I am trying to enable remote syslog on pfc/edge/tp but I am not able to get this to work.  
Tried to add one of these to the /etc/syslog-ng.conf without any success.

```auto
destination remote { network("ip-of-syslog-server" transport("udp") port(514)); };

```

```auto
destination remote { udp("ip-of-syslog-server" port(514)); };

```

Anyone that got this working on the WAGO controllers?

---

<div class="post-metadata">

**Author:** ![quenorha](https://sea2.discourse-cdn.com/flex016/user_avatar/www.wago.community/quenorha/32/429_2.png) [@quenorha](https://www.wago.community/u/quenorha)\
**Post date:** [January 3, 2024, 12:26pm UTC](https://www.wago.community/t/remote-syslog-on-the-wago-controllers/725/2 "2024-01-03T12:26:32Z")

</div>

I use successfuly this one :

```auto
destination d_syslogserver {
       syslog("ip-of-syslog-server" transport("tcp") port(514) );
};

```

(I think udp can be used as well. )  
Then you need to add this one also :

```auto
log {
       source(s_local);
       destination(d_syslogserver );
};

```

Then restart the syslog

```auto
/etc/init.d/syslog-ng restart

```

Take a look to /var/log/syslog-ng.log to see if there is a problem.

---

<div class="post-metadata">

**Author:** ![WagoThomas](https://sea2.discourse-cdn.com/flex016/user_avatar/www.wago.community/wagothomas/32/292_2.png) [@WagoThomas](https://www.wago.community/u/WagoThomas)\
**Post date:** [January 3, 2024, 12:38pm UTC](https://www.wago.community/t/remote-syslog-on-the-wago-controllers/725/3 "2024-01-03T12:38:05Z")

</div>

Found some tutorials so I got it working. It was the the second log part I was missing 🙂  
Tested it with udp and it works as well.

Thanx!

---

<div class="post-metadata">

**Author:** ![quenorha](https://sea2.discourse-cdn.com/flex016/user_avatar/www.wago.community/quenorha/32/429_2.png) [@quenorha](https://www.wago.community/u/quenorha)\
**Post date:** [January 3, 2024, 1:39pm UTC](https://www.wago.community/t/remote-syslog-on-the-wago-controllers/725/4 "2024-01-03T13:39:05Z")

</div>

Yes, you can also add some filtering and parsing between the source and the destination.
