Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
network(): added new network source and destination drivers
This patch implements both source and destination drivers called "network()", which encapsulates the previous tcp() and udp() drivers. The advantage of using network() over tcp/udp is that it separates the message format from the transport being used. The transport can be specified using the transport() parameter (akin to syslog()), the newly introduced plugin support for pluggable transport mechanisms become available this way. The message format defaults to traditional BSD syslog, but can completely be customized using the template() option. Here's a sample network source: source s_network { network(port(2000) transport(udp)); }; Destination: destination d_network { network("hostname" port(2000) transport(framed)); }; As you can see it is possible to use the new-style RFC5425 framing with whatever (e.g. BSD or custom template formatted) message contents. Signed-off-by: Balazs Scheidler <bazsi@balabit.hu>
- Loading branch information
Showing
5 changed files
with
67 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters