I've corrected a problem with what I sent out a couple of days ago and can 
programmatically alter the log data. However, I still have the following 
questions:

(1) When the data is loaded into mongodb via ommongodb I get records like this:

    {
      "_id" : ObjectId("5564bfafa8a87859b34ad450"),
      "msg" : "{
                   \"msg\": \"[umberlog test] testing ... 1, 2, 3\\n\",
                   \"host\": \"test0\",
                   \"elements\": [
                       { \"type\": \"ladybug\", \"name\": \"natalie\", 
\"spots\": 12 },
                       { \"role\": \"worker\", \"age\": 9, \"type\": \"ant\",
                         \"name\": \"B289\" }
                   ],
      \"time\": \"2015-05-26T13:47:11.110216-05:00\" }"
    }

  How can I make the body of msg be JSON as opposed to a string containing JSON?


(2) Why can I not access $! in a template (this is related to the first 
question)
    after using mmexternal?

All of this references code in:

    https://github.com/davidboles/snowflake.git

Perhaps when working this sample could go on your Wiki as an example of using 
rsyslog with Lumberjack structured log data.

Thanks,

David Boles

_______________________________________________
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.

Reply via email to