What's new

Scribe Obsolete network sources in Scribe

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

elorimer

Part of the Furniture
The network sources and destinations (specifically, the "udp" definition) in Scribe are obsolete and should be replaced with newer network() definitions if you are passing messages over the network from one logging program to another, such as from a mesh node or NAS to the router, or from the router to a NAS.

In the syslog-ng.conf file Scribe installs, you will find this source definition for "net":
Code:
# if you only want to pass network messages through some syslog-ng filters, uncomment the source line below

# then add "soource(net);" to the log statement in any filter you want to pass network messages through

#source net { udp(ip(192.168.x.y) port(514)); };

This should be replaced with
Code:
source net {
    network(
        ip(192.168.x.y)
        port(514)
        transport(udp)
    );
};
Note that the default port for udp is already 514, so that line can be omitted. The default ip is 0.0.0.0, and that line can also be omitted.

Similarly, in the syslog-ng.conf file a remote log destination is created:
Code:
# uncomment these three lines to send udp log messages to local network
# must also uncomment "destination(log_server);" below for messages that
# are not otherwise filtered out to be sent to the remote log server
# destination log_server {
#    udp("192.168.x.y" port(514));
#};
This should be replaced with:
Code:
destination log-server{
    network(
        transport(udp)
        ip(192.168.x.y)
        port(514)
    );
};
Here, too, the port is the same as the default. A similar issue is in the A00remote file in /opt/share/syslog-ng/examples.
 
Ugh. Why do they keep changing stuff? If it's not broke, fix it until it is?

With luck, my availability should increase in the next few months, I'll try to sort some of these lingering issues.
 

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top