Hello,

On Thu, Apr 11, 2024 at 1:34 AM warron.french via rsyslog <
rsyslog@lists.adiscon.com> wrote:

> Sir, David, as there anything else you needed from me?
>

The legacy way to set owner/group of files is to use something like the
following:
$FileOwner nameOfTheOwner
$FileGroup nameOfTheGroup

The new syntax is the following:
action( type="omfile"  file="'path/to/file" FileOwner="nameOfTheOwner"
FileGroup="'nameOfTheGroup" )

Hope that helps.


>
> --------------------------
> Warron French
>
>
>
> On Tue, Apr 9, 2024 at 8:05 AM warron.french <warron.fre...@gmail.com>
> wrote:
>
> > Hello sir, sorry, I did not have the opportunity to reply earlier than
> > just now as this is a work related issue and I had another task at work
> > yesterday.
> > Attached is an image of the syntax I have put into place.  Unfortunately,
> > I am not permitted to share the entire file; and I also had to redact
> some
> > of the syntax.
> >
> > This syntax, as you see it plus the syntax that is redacted works as
> > expected for us presently.  As you can see I am not using the *action()
> > syntax*, mostly because I do not know how to adapt the syntax I have to
> > the action() syntax format.
> >
> >
> > --------------------------
> > Warron French
> >
> >
> >
> > On Sat, Apr 6, 2024 at 1:20 AM David Lang <da...@lang.hm> wrote:
> >
> >> if you are using the action() syntax, you set the ownership as part of
> >> the
> >> action.
> >>
> >> if you post your full config (including included files) we can better
> >> guess
> >> what's wrong with it.
> >>
> >> David Lang
> >>
> >> On Sat, 6 Apr 2024, warron.french via rsyslog wrote:
> >>
> >> > I am running multiple servers on RHEL-7.9 at work and with no option
> to
> >> > upgrade to a newer major version.
> >> >
> >> > I have a server collecting (consolidating) logs from other (remote)
> >> servers
> >> > and need to store the various independently generated logfiles but
> also
> >> set
> >> > the Group-owner to something other than root.
> >> >
> >> > I thought the proper syntax to do this was to set:
> >> > $FileOwner   somegroup
> >> >
> >> > But rsyslogd upon restart fails to accept this directive.
> >> >
> >> > Can someone tell me what directive I should be using because
> attempting
> >> to
> >> > find the Rsyslog documentation specific to my RHEL-7.9 in combination
> to
> >> > answering this query at *rsyslog.com <http://rsyslog.com> *
> >> > is not proving to be useful.
> >> >
> >> > Thank you in advance for your assistance,
> >> >
> >> > --------------------------
> >> > Warron French
> >> > _______________________________________________
> >> > 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.
_______________________________________________
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.

Reply via email to