Sent from phone, thus brief.
Am 04.03.2016 20:02 schrieb "David Lang" <[email protected]>:
>
> On Fri, 4 Mar 2016, Kevin Lu wrote:
>
>> Hi folks,
>>
>> I'm having two questions. They are somehow related though.
>>
>> #1 restart rsyslogd without sudo access
>> I'm trying to setup a system, a docker image to be exactly. I managed to
>> start rsyslogd inside docker container without sudo by changing
permissions
>> of some relevant files, like pid and config files. However rsyslogd still
>> couldn't get restarted once it's started, as rsyslogd will change some
>> files permissions back when it's trying to get restarted. Is there
anyway I
>> can restart rsyslogd without sudo access?
>
>
> configure rsyslog so that it is using the same user/permissions that you
change things to. remember that rsyslog will need the ability to create the
files you have it output to.
>
>
>> #2 use imfile wildcard support without sudo access
>> I need setup rsyslog to monitor some folders using wildcard as there will
>> be new log files generated on the fly. My understanding is rsyslog would
>> actually need get restarted whenever new log files are found by the
monitor
>> before rsyslog can start fetch data from the new file(s). Is it right? Is
>> it possible to make imfile wildcard monitor work without restarting
>> rsyslogd?
>
>
> my understanding is that if you have a wildcard name, rsyslog will
periodically look for new files, and this rechecking rate is configurable.

Its inotify based, so we get events from the OS. No restart involved. We
never do any restart automatically.

Rainer
>
> David Lang
>
>
>> Thanks a lot in advance for any input!
>>
>> Regards,
>> Kevin
>> _______________________________________________
>> 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.

Sent from phone, thus brief.
_______________________________________________
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