I believe programname is part of syslogtag.
I get:
2014-06-02T22:14:39-07:00 hostname /var/local/kamailio/sbin/kamaili
INFO: ctl [io_listener.c:221]: io_listen_loop: using epoll_lt as the io
watch method (auto detected)
I'd like the full path there to not be there. I can probably fix that by
executing "./kamailio" instead of invoking it with the full path, but I
was wondering if there was a good way to do this generically.
thx
On 6/2/14, 3:31 PM, David Lang wrote:
On Mon, 2 Jun 2014, Rory Toma wrote:
I have a template that is of the form:
$template Test,"<%PRI%>%TIMESTAMP% %HOSTNAME%
%syslogtag:1:32%%msg:::sp-if-no-1st-sp%%msg:::space-cc%"
This results in a full path on my receiver for programname. Is there
a way I can have it send only the basename, and not the path?
I'm not understanding what you are asking, programname doesn't appear
anywhere in this template
could you give an example of a log message you get, what the result
currently is with that message, and what you want it to be?
David Lang
_______________________________________________
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.
_______________________________________________
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.