Is there a way rsyslog can prefix the host name how you mentioned, I
was reading about the DynaFile, woudl I need to create a template and
append below text to it?

/var/log/%HOSTNAME%/%programname%.log

Robert


On Sat, Oct 12, 2013 at 12:18 AM, David Lang <[email protected]> wrote:
> yes.
>
> note that if you have two programs writing to the same file on NFS, you will
> have headaches, so do something like prefixing the filename with the
> hostname of the server writing them.
>
>
> David Lang
>
> On Fri, 11 Oct 2013, robert s wrote:
>
>> Date: Fri, 11 Oct 2013 13:44:01 -0400
>> From: robert s <[email protected]>
>> Reply-To: rsyslog-users <[email protected]>
>> To: rsyslog-users <[email protected]>
>> Subject: Re: [rsyslog] redundant rsyslog
>>
>>
>> Oh ok, and just set up the same rsyslog configuration on both servers
>> right?
>>
>> Robert
>>
>>
>> On Fri, Oct 11, 2013 at 1:03 PM, David Lang <[email protected]> wrote:
>>>
>>> you would setup rsyslog on both machines, then install something like
>>> pacemaker or keepalived and assign the cluster a third IP address that
>>> pacemaker or keepalived would move from one machine to the other when one
>>> fails.
>>>
>>> David Lang
>>>
>>>
>>>  On Fri, 11 Oct 2013, robert s wrote:
>>>
>>>> Hello Everyone,
>>>>
>>>> I wanted to ask your input in what would be the best way to have
>>>> redundancy/failover for rsyslog,
>>>>
>>>> I have two available servers that rsyslog can be installed into them.
>>>> I would like to be able to have both servers listening to messages
>>>> coming in from either a single ip or a pool of ips.
>>>>
>>>> I would like them to be configured in an active/passive configuration
>>>> where if one server malfunctions the second server will take over and
>>>> keep logging.
>>>>
>>>> Does rsyslog have the capability to do fail over?
>>>>
>>>> Robert
>>>> _______________________________________________
>>>> 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.
>>
>> _______________________________________________
>> 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.
_______________________________________________
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