Sent from phone, thus brief.
Am 12.09.2013 16:10 schrieb "Jonny Törnbom" <[email protected]>:
>
> On Thu, Sep 12, 2013 at 03:44:49PM +0200, Rainer Gerhards wrote:
> > Sent from phone, thus brief.
> > Am 12.09.2013 15:17 schrieb "Jonny Törnbom" <[email protected]>:
> > >
> > > On Thu, Sep 12, 2013 at 02:28:37PM +0200, Rainer Gerhards wrote:
> > > > On Thu, Sep 12, 2013 at 2:05 PM, Jonny Törnbom <
[email protected]
> > >wrote:
> > > >
> > > > > Hi,
> > > > >
> > > > > We are in the progress of upgrading from rsyslog 5.8.11 to 7.4.4
and
> > > > > previously we used a string generator module to output the format
we
> > > > > wanted.
> > > > >
> > > > > To simplify, what we want is a way of specifying a text field to
> > always
> > > > > be, for instance, 15 chars wide in output, no matter if
severity-text
> > > > > contains only 5 chars. This is basically so that the output is
aligned
> > > > > nicely.
> > > > >
> > > > > I would like to be able to do this with a template only:
> > > > >
> > > > > 2013-01-01T11:11:11.123456+00:00 hostname NOTICE  app[pid]:
message
> > > > > 2013-01-01T11:11:11.123456+00:00 hostname ERR     app[pid]:
message
> > > > >
> > > > > Do you think this is possible?
> > > > >
> > > > >
> > > > yes, but TBH far from being at the top spot of the todo list - lots
of
> > more
> > > > frequently requested things. If it's urgent or there is a biz case
> > behind
> > > > it, consider using our professional services to implement it. As of
> > first
> > > > thought, doesn't sound like a big thing to do.
> > > >
> > > > Rainer
> > > >
> > >
> > > I could probably spend some time on it. I'm guessing just adding a
> > > property option like position.ToPad would do, perhaps a better name
but
> > > something along that line perhaps?
> > >
> >
> > Cool! How about just "width"? Or "minsize"? - what raises the question
what
> > shall happen if the property is larger. ..
>
> I'd suggest "fixedwidth" in that case and truncate if larger. Just like
> fromChar:toChar except that in the case that the string is < toChar we
> pad it with spaces up to toChar?
>
> Makes sense? :)

Sounds good to me. Anyone else?
Rainer
>
> / Jonny
> _______________________________________________
> 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