Hi all,

I have rsyslog (7.4.4, ubuntu) configured to monitor a file and send
messages to a centralized logging server, also running rsyslog (5.8.10, aws
linux).
I have the following rsyslog conf on the client side:
$InputFileName /path/to/log
$InputFileTag tagforlog
$InputFileStateFile log
$InputFileFacility local5
$InputRunFileMonitor

And messages in the log file are logged like this:
[2016-03-02 00:13:14] ERROR: exception '\Exception\NotFoundHttpException'
in /some/file.php:148
Stack trace:
#0 /some/file(369): \RouteCollection->match(Object(\Http\Request))
#1 /some/file(1022): \Router->findRoute(Object(\Http\Request))
[...]

but on the receiving end all lines will be prefixed with a date stamp, like
this:
Mar  2 00:13:21 server1 tagforlog ERROR: exception
'\Exception\NotFoundHttpException' in /some/file.php:148
Mar  2 00:13:21 server1 tagforlog Stack trace:
Mar  2 00:13:21 server1 tagforlog #0 /some/file(369):
\RouteCollection->match(Object(\Http\Request))
Mar  2 00:13:21 server1 tagforlog #1 /some/file(1022):
\Router->findRoute(Object(\Http\Request))
[...]


Is there some option I can use to prevent prefixing subsequent lines in a
block of text?

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