Mailing List Archive

Full list of template variables?
Hello

I know that I can use %HOSTNAME%, %FROMNAME%, %FROMNAME-IP% and so on in
templates; however, where can I find full list of those variables?

Moreover, I'd like not only to store my logs in dynamic directory
according from %FROMNAME-IP%, but also hash them at least by first octet
of IP (there are lots of them). How can I do it with rsyslog?

--

Alex



--
??? ????????? ????????? ?? ?????? ??????????? Avast.
https://www.avast.com/antivirus

_______________________________________________
rsyslog mailing list
https://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.
Re: Full list of template variables? [ In reply to ]
https://www.rsyslog.com/doc/v8-stable/configuration/properties.html

That's the first answer, the documentation is always your friend.  It
should lead you to the second answer as well.


On 8/18/20 2:07 PM, ????????? ?????????? via rsyslog wrote:
> Hello
>
> I know that I can use %HOSTNAME%, %FROMNAME%, %FROMNAME-IP% and so on
> in templates; however, where can I find full list of those variables?
>
> Moreover, I'd like not only to store my logs in dynamic directory
> according from %FROMNAME-IP%, but also hash them at least by first
> octet of IP (there are lots of them). How can I do it with rsyslog?
>
> --
>
> Alex
>
>
>

_______________________________________________
rsyslog mailing list
https://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.
Re: Full list of template variables? [ In reply to ]
Thank you! I could not find anything because I was searching for wrong
keywords and was too sleepy to read docs in whole.

On 19.08.2020 7:18, John Chivian via rsyslog wrote:
> https://www.rsyslog.com/doc/v8-stable/configuration/properties.html
>
> That's the first answer, the documentation is always your friend. It
> should lead you to the second answer as well.
>
>
> On 8/18/20 2:07 PM, ????????? ?????????? via rsyslog wrote:
>> Hello
>>
>> I know that I can use %HOSTNAME%, %FROMNAME%, %FROMNAME-IP% and so on
>> in templates; however, where can I find full list of those variables?
>>
>> Moreover, I'd like not only to store my logs in dynamic directory
>> according from %FROMNAME-IP%, but also hash them at least by first
>> octet of IP (there are lots of them). How can I do it with rsyslog?
>>
>> --
>>
>> Alex
>>
>>
>>
>
> _______________________________________________
> rsyslog mailing list
> https://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.

--
??? ????????? ????????? ?? ?????? ??????????? Avast.
https://www.avast.com/antivirus

_______________________________________________
rsyslog mailing list
https://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.
Re: Full list of template variables? [ In reply to ]
Which keywords were you searching for? I'd like to improve on that...

Rainer

Sent from phone, thus brief.

????????? ?????????? via rsyslog <rsyslog@lists.adiscon.com> schrieb am
Mi., 19. Aug. 2020, 07:30:

> Thank you! I could not find anything because I was searching for wrong
> keywords and was too sleepy to read docs in whole.
>
> On 19.08.2020 7:18, John Chivian via rsyslog wrote:
> > https://www.rsyslog.com/doc/v8-stable/configuration/properties.html
> >
> > That's the first answer, the documentation is always your friend. It
> > should lead you to the second answer as well.
> >
> >
> > On 8/18/20 2:07 PM, ????????? ?????????? via rsyslog wrote:
> >> Hello
> >>
> >> I know that I can use %HOSTNAME%, %FROMNAME%, %FROMNAME-IP% and so on
> >> in templates; however, where can I find full list of those variables?
> >>
> >> Moreover, I'd like not only to store my logs in dynamic directory
> >> according from %FROMNAME-IP%, but also hash them at least by first
> >> octet of IP (there are lots of them). How can I do it with rsyslog?
> >>
> >> --
> >>
> >> Alex
> >>
> >>
> >>
> >
> > _______________________________________________
> > rsyslog mailing list
> > https://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.
>
> --
> ??? ????????? ????????? ?? ?????? ??????????? Avast.
> https://www.avast.com/antivirus
>
> _______________________________________________
> rsyslog mailing list
> https://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
https://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.
Re: Full list of template variables? [ In reply to ]
I was looking for template variables. I think, direct link to full list
before examples on
https://www.rsyslog.com/doc/v8-stable/configuration/templates.html would
help me enough.

On 19.08.2020 8:53, Rainer Gerhards wrote:
> Which keywords were you searching for? I'd like to improve on that...
>
> Rainer
>
> Sent from phone, thus brief.
>
> ????????? ?????????? via rsyslog <rsyslog@lists.adiscon.com
> <mailto:rsyslog@lists.adiscon.com>> schrieb am Mi., 19. Aug. 2020, 07:30:
>
> Thank you! I could not find anything because I was searching for
> wrong
> keywords and was too sleepy to read docs in whole.
>
> On 19.08.2020 7:18, John Chivian via rsyslog wrote:
> > https://www.rsyslog.com/doc/v8-stable/configuration/properties.html
> >
> > That's the first answer, the documentation is always your
> friend. It
> > should lead you to the second answer as well.
> >
> >
> > On 8/18/20 2:07 PM, ????????? ?????????? via rsyslog wrote:
> >> Hello
> >>
> >> I know that I can use %HOSTNAME%, %FROMNAME%, %FROMNAME-IP% and
> so on
> >> in templates; however, where can I find full list of those
> variables?
> >>
> >> Moreover, I'd like not only to store my logs in dynamic directory
> >> according from %FROMNAME-IP%, but also hash them at least by first
> >> octet of IP (there are lots of them). How can I do it with rsyslog?
> >>
> >> --
> >>
> >> Alex
> >>
> >>
> >>
> >
> > _______________________________________________
> > rsyslog mailing list
> > https://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.
>
> --
> ??? ????????? ????????? ?? ?????? ??????????? Avast.
> https://www.avast.com/antivirus
>
> _______________________________________________
> rsyslog mailing list
> https://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
https://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.