numeric values are not stored as integer values in the mongodb.
e.g. "bytes":"123" instead of "bytes":123
I tried it with the following template but had no success:
template(name="tpl1" type="list") {
constant(value="\"bytes\":")
property(name="$!bytes" type="int")
constant(value=", \"somestring\":\"")
property(name="$!somestring")
constant(value="\"")
}
action(type="ommongodb" server="127.0.0.1" db="test" collection="logs"
uid="test" pwd="xxxx" template="tpl1")
when I save it to a file (omfile) it makes it correctly (without the
quotes): "bytes":123
is this a known limitation of ommongodb that it stores all values as
strings? do I need to define the data type somewhere explicitly?
TIA
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of
sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE
THAT.