Thanks Peter
I used a regex and got it working like a charm

Thanks
Adam

On Thu, Sep 13, 2018 at 1:20 PM Peter Viskup via rsyslog <
rsyslog@lists.adiscon.com> wrote:

> Hello Adam,
> property replacer with use of regular expressions might help.
> https://www.rsyslog.com/doc/v8-stable/configuration/property_replacer.html
>
> Peter
> On Thu, Sep 13, 2018 at 12:30 PM Adam Barnett via rsyslog
> <rsyslog@lists.adiscon.com> wrote:
> >
> > Hi,
> >
> > We are using rsyslog 8.24.0
> > I am using templates of redirect the output to a file for example
> >
> >
> > template (name="server-path" type="string"
> > string="/user_data3/SITE/syslog/server/%HOSTNAME%/%$NOW%-syslog.log")
> >
> >
> > This is working fine but everything is going to a file called the FQDN of
> > the host is there a way to strip this off. i just want the shortname?
> >
> > Many Thanks
> > Adam
> > --
> > Adam Barnett
> > _______________________________________________
> > 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.
>


-- 
Adam Barnett
_______________________________________________
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