summaryrefslogtreecommitdiffstats
path: root/include/ulogd
diff options
context:
space:
mode:
authorEric Leblond <eric@regit.org>2014-01-26 22:21:42 +0100
committerEric Leblond <eric@regit.org>2014-01-28 23:06:19 +0100
commit0d213c1f1de63a016bcd730106e3aea83439c388 (patch)
treecdb0b67ea184f9601c8b3e7886fc693e6c995d69 /include/ulogd
parent5ebf1795c064cdde5ddaf66a263f532030317dd5 (diff)
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.
Diffstat (limited to 'include/ulogd')
-rw-r--r--include/ulogd/ulogd.h3
1 files changed, 3 insertions, 0 deletions
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 {