Hi David,

On 7 April 2014 21:31, David Lang <[email protected]> wrote:

> On Mon, 7 Apr 2014, Oliver Bestwalter wrote:
>
>  Hi David,
>>
>>
>> On 7 April 2014 19:07, David Lang <[email protected]> wrote:
>>
>>  write a log with the format RSYSLOG_DebugFormat and you will see the
>>> rawlog that rsyslog received and how it's been parsed.
>>>
>>>
>>

Sorry, I am very new to (r)syslog and did not find out from where or how to
do that (man logger doesn't mention anything about debug stuff, so I guess
you mean some other means of logging).


 the bottom line is that you are sending a log that's not in the correct
>>> format, so the first word is being parsed into a different variable than
>>> %msg% (probably systlogtag)
>>>
>>>
>>>  o.k. but as I did not change any defaults in the logging settings, this
>> would mean that logging to syslog from Python is broken by default ...
>>
>
> no, it just means you are misunderstanding things in Python.
>
>
You were correct with the assumption that the first word of the message
ends up in %syslogtag%. But this is not mentioned in the docs for the
Python SyslogHandler (
https://docs.python.org/2.7/library/logging.handlers.html#sysloghandler ),
so in my interpretation it's broken - I will have to check with the
maintainer of the logging module if this is a bug or a feature.

Cheers
Oliver
_______________________________________________
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