File: python-example.conf

package info (click to toggle)
syslog-ng 3.28.1-2%2Bdeb11u1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 15,028 kB
  • sloc: ansic: 132,531; python: 5,838; makefile: 5,195; sh: 4,580; java: 3,555; xml: 3,344; yacc: 1,209; lex: 493; perl: 193; awk: 184
file content (14 lines) | stat: -rw-r--r-- 295 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
@version: 3.28

log {
  source { tcp(port(12345)); };
  destination {
    python(
	class("sngexample.DummyPythonDest")
        on-error("fallback-to-string")
        value-pairs(scope(base)
                    pair("foo.bar" "baz")
                    pair("some-int" int("42")))
    );
  };
};