On Fri, 16 Mar 2018, opensource.cbc via rsyslog wrote:

    As far as I konw, rsyslog can support logging from a file,but if the log 
format is XML,is that ok?If not, what should I do?

well, in part that depends on the way XML is used in the file and what you want to do with it :-)

Is each line a separate log entry or do long entries span lines (or do you have multiple log entries per line)? If they span lines, how can you identify the start of a message?

Once you get the log entries read in individually, what are you wanting to do with them? forwarding the messages as-is is trivial, if you are wanting to parse the message and use parts of the message, things get a bit more complicated.

There are so many different ways to do things in XML, can you post a sample log entry?
_______________________________________________
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