Syslog NG - MacOS Testing
  • GSOC - Project Report
  • Testing Methodology
  • Testing Status
  • Installation
  • Modules
    • afsocket [17]
      • network() Source Driver
      • network() Destination Driver
      • syslog() Source/Destination Driver
      • unix-stream() Source Driver
      • unix-stream() Destination Driver
      • unix-dgram() Source/Destination Driver
      • TLS-Encryption
        • Using network()
        • Using syslog()
    • affile [6]
      • file() Source Driver
      • file() Destination Driver
      • pipe() Source Driver
      • pipe() Destination Driver
      • wildcard_file() Source Driver
      • stdin() Source Driver
    • afprog [2]
      • program() Source Driver
      • program() Destination Driver
    • system [1]
      • Collecting local logs pre macOS 10.15 Catalina
    • afuser [1]
    • pseudofile [1]
    • mod-python [7]
      • python() Source Driver
      • python-fetcher() Source Driver
      • python() Destination Driver*
    • afmongodb [1]
    • http [1]
    • riemann [1]
    • redis [1]
    • elasticsearch-http [1]
    • afsql [1]
    • afsmtp [1]
Powered by GitBook
On this page
  • Important Information
  • Status
  • Configuration File Used
  • Proof

Was this helpful?

  1. Modules
  2. afsocket [17]

unix-stream() Source Driver

The unix-stream() driver open an AF_UNIX socket and start listening on it for messages. The unix-stream() driver uses SOCK_STREAM semantics.

Important Information

In the official documentation, /dev/log is the default entry for system logging. This, in fact, is a socket, not a regular file or a pipe. MacOS, however, uses /var/run/syslog for the same. This needs to be kept in mind while referring to the documentation.

Status

Architecture

Status

x86

Works

ARM

Works

Configuration File Used

@version: 3.31
@include "scl.conf"

options {
    stats-freq(10);
    time-reopen(10);
};

source s_stream {
    unix-stream("/var/run/syslog");
};

destination console{
    file(/dev/stdout);
};

log {
    source(s_stream);
    destination(console);
};

Proof

Note : unix-stream() does not support multiple lines as the record separator is the NL character, so if you embed "\n" in the log message, they will become separate messages.

Previoussyslog() Source/Destination DriverNextunix-stream() Destination Driver

Last updated 3 years ago

Was this helpful?

unix-stream() source driver tested using netcat on macOS (x86)
unix-stream() source driver tested using netcat on macOS (ARM)