From 0d213c1f1de63a016bcd730106e3aea83439c388 Mon Sep 17 00:00:00 2001 From: Eric Leblond Date: Sun, 26 Jan 2014 22:21:42 +0100 Subject: store Common Information Model name in ulogd key This patch adds storage for CIM field name in ulogd key. This will be used by JSON output to interoperate with logging collector such as logstash or splunk. Common Information Model is an open standard that defines how managed elements in an IT environment are represented as a common set of objects and relationships between them: http://www.dmtf.org/standards/cim This seems to be mainly XML based but there is a JSON version of some aspects of the model. One of the main documentation on CIM in JSON format seems to be: http://docs.splunk.com/Documentation/PCI/2.0/DataSource/CommonInformationModelFieldReference Using the correct CIM field name allow events coming from ulogd to be correlated with events coming from other sources. --- include/ulogd/ulogd.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') diff --git a/include/ulogd/ulogd.h b/include/ulogd/ulogd.h index cc2f15c..cf26a15 100644 --- a/include/ulogd/ulogd.h +++ b/include/ulogd/ulogd.h @@ -98,6 +98,9 @@ struct ulogd_key { u_int16_t field_id; } ipfix; + /* Store field name for Common Information Model */ + char *cim_name; + union { /* and finally the returned value */ union { -- cgit v1.2.3