On Mon, Dec 22, 2014 at 10:07 PM, Maupertuis Philippe < [email protected]> wrote:
> From by understanding of the documentation, the statefile name contains > all the needed information. > It would be enough if it could be accessed but I don't know if that makes > sense > Bothering with internal state does not really make sense and it wouldn't even solve the root problem (which state file would you want to access?). I have added a feature request on github: https://github.com/rsyslog/rsyslog/issues/199 Will try to fit it into the jan 13th release, but no promise. Rainer > > Philippe > ________________________________________ > De : [email protected] [[email protected]] > de la part de David Lang [[email protected]] > Date d'envoi : lundi 22 décembre 2014 19:35 > À : rsyslog-users > Objet : Re: [rsyslog] imfile include filename or statefile in the message. > > That's a good question. One the one hand, a variable that explicity gives > the > filename gives the most flexibility, but combining it with the input name > probably makes for a simpler config and is close enough to "do the right > think > automatically" that it would satisfy new users the vast majority of the > time. > > the "best" answer would probably be to allow the input name to have a %% > in it > that gets replaced by the filename, and have a separate filename variable. > But > that's probably a bit on the messy side to implement. > > David Lang > > > On Mon, 22 Dec 2014, Rainer Gerhards wrote: > > > What's best? ;) > > > > Sent from phone, thus brief. > > Am 22.12.2014 18:09 schrieb "David Lang" <[email protected]>: > > > >> append the filename to the input name if it's a wildcard or something > like > >> that? > >> > >> David Lang > >> > >> On Mon, 22 Dec 2014, Rainer Gerhards wrote: > >> > >> I think there is nothing along those lines, but definitely makes > sense. > >>> > >>> Sent from phone, thus brief. > >>> Am 22.12.2014 18:01 schrieb "David Lang" <[email protected]>: > >>> > >>> This is a new feature, so I'm not sure. But if you log with the format > >>>> RSYSLOG_DebugFormat you will see all the variables that are defined. > >>>> Take a > >>>> look and see what's listed. > >>>> > >>>> David Lang > >>>> > >>>> On Mon, 22 Dec 2014, Maupertuis Philippe wrote: > >>>> > >>>> Hi list, > >>>> > >>>>> Using imfile to watch a whole directory, I need to include the > filename > >>>>> or the generated state file name in the message. > >>>>> Is there any available variable to do that ? > >>>>> Thanks > >>>>> Philippe > >>>>> > >>>>> _______________________________________________ > >>>>> > >>>> 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. > > > Ce message et les pièces jointes sont confidentiels et réservés à l'usage > exclusif de ses destinataires. Il peut également être protégé par le secret > professionnel. Si vous recevez ce message par erreur, merci d'en avertir > immédiatement l'expéditeur et de le détruire. L'intégrité du message ne > pouvant être assurée sur Internet, la responsabilité de Worldline ne pourra > être recherchée quant au contenu de ce message. Bien que les meilleurs > efforts soient faits pour maintenir cette transmission exempte de tout > virus, l'expéditeur ne donne aucune garantie à cet égard et sa > responsabilité ne saurait être recherchée pour tout dommage résultant d'un > virus transmis. > > This e-mail and the documents attached are confidential and intended > solely for the addressee; it may also be privileged. If you receive this > e-mail in error, please notify the sender immediately and destroy it. As > its integrity cannot be secured on the Internet, the Worldline liability > cannot be triggered for the message content. Although the sender endeavours > to maintain a computer virus-free network, the sender does not warrant that > this transmission is virus-free and will not be liable for any damages > resulting from any virus transmitted. > _______________________________________________ > 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.

