RFC introduce new string output plugin
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest0 of 2 patches 0 repliesNew
Patches in v1 No applies recorded yet
None of the 2 patches the cover letter announces are in this archive.
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [ulogd RFC PATCH 0/2 resend] introduce new string output plugin
This patch introduces a new string output plugin. The output string can be specified by "form" in config file. Format is consists of:
key: struct ulogd_key name enclosed by <>, e.g. <orig.ip.saddr.str>
group: enclosed by () and separated by |, pick first one if exists.
(<orig.l4.dport>|<icmp.type>|unknown) means
pick orig.l4.dport value if exist, or icmp.type value. if both of them do not exist, select "unknown" string.
+: add two key value if it can be
anything else: as is
meta character <>()|+\ needs to be escaped by \. Sink can be specified by "dest" like URI syntax, proto://host:port, proto can be either file, tcp and udp, e.g. dest="tcp://192.168.1.1:8125" for statsite. host is filename in case of proto is file or stdout if dest is "file://"
'.' and ':' in ip address format can be changed by specifying "addrsep" for use of graphite and statsd.
Signed-off-by Ken-ichirou MATSUZAWA <[email protected]>
--- output/Makefile.am | 5 +- output/ulogd_output_SPRINT.c | 1063 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 1067 insertions(+), 1 deletion(-) create mode 100644 output/ulogd_output_SPRINT.c
output/Makefile.am +4 -1
@@ -7,7 +7,7 @@ SUBDIRS= pcap mysql pgsql sqlite3 dbi pkglib_LTLIBRARIES = ulogd_output_LOGEMU.la ulogd_output_SYSLOG.la \ ulogd_output_OPRINT.la ulogd_output_GPRINT.la \ ulogd_output_NACCT.la ulogd_output_XML.la \ - ulogd_output_GRAPHITE.la + ulogd_output_GRAPHITE.la ulogd_output_SPRINT.la if HAVE_JANSSON pkglib_LTLIBRARIES += ulogd_output_JSON.la
@@ -42,3 +42,6 @@ ulogd_output_JSON_la_SOURCES = ulogd_output_JSON.c ulogd_output_JSON_la_LIBADD = ${libjansson_LIBS} ulogd_output_JSON_la_LDFLAGS = -avoid-version -module endif + +ulogd_output_SPRINT_la_SOURCES = ulogd_output_SPRINT.c +ulogd_output_SPRINT_la_LDFLAGS = -avoid-version -module
output/ulogd_output_SPRINT.c new file +1063 -0
1,063 lines not on this page · raw message
Signature · 1 line
1.9.1