<p dir="ltr">Alright, module loading flag it is then.</p>
<p dir="ltr">--<br>
Regards,<br>
Janmejay</p>
<p dir="ltr">PS: Please blame the typos in this mail on my phone's uncivilized soft keyboard sporting it's not-so-smart-assist technology.<br>
</p>
<div class="gmail_quote">On Nov 4, 2014 3:42 AM, "David Lang" <<a href="mailto:david@lang.hm">david@lang.hm</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Mon, 3 Nov 2014, singh.janmejay wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I think module-loading call having a flag to turn on/off would be better<br>
than build-time flag, purely because it allows one to build a package and<br>
use it on several boxes, while keeping the feature off when not required. A<br>
more fine grained control, in that sense.<br>
</blockquote>
<br>
I was thinking in terms of something in the config file. We need it to be something that the person configuring rsyslog will see so that they know they are doing something slow. Most users don't compile rsyslog so they won't ever see the compile time flag.<br>
<br>
module loading time seems fine.<br>
<br>
David Lang<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
We can support both levels of enabling, but then a lot of people may be<br>
confused as to why it doesn't work when they turned it on while building.<br>
<br>
2 levels also seems a little over-protective to me. Kinda like Windows "do<br>
you really want to delete this file" prompts.<br>
<br>
Does module-loading time flag sound ok?<br>
<br>
--<br>
Regards,<br>
Janmejay<br>
<br>
PS: Please blame the typos in this mail on my phone's uncivilized soft<br>
keyboard sporting it's not-so-smart-assist technology.<br>
<br>
On Nov 3, 2014 10:52 PM, "singh.janmejay" <<a href="mailto:singh.janmejay@gmail.com" target="_blank">singh.janmejay@gmail.com</a>> wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hex was just an example. I meant when someone needs to roll out something<br>
very quickly, and it's not supported in the build they have, it's useful to<br>
be able to do it using regex in rulebase but still completely working in<br>
terms of rules, rather than having to resort to a mix of rules and<br>
exec-template calls with regexp based property extractors etc.<br>
<br>
It's still the same amount of work, if someone is trying to do something<br>
unsupported by lognorm. So performance effects will still show, just not in<br>
lognorm.<br>
<br>
This allows for flexibility and clean way of parsing logs at possibly even<br>
slightly lesser cost then the former approach.<br>
<br>
We can support a switch-on flag in conf file(module loading call, may be)<br>
which can be used to enable performance sensitive features.<br>
<br>
I personally think warning in logs would be enough though.<br>
<br>
--<br>
Regards,<br>
Janmejay<br>
<br>
PS: Please blame the typos in this mail on my phone's uncivilized soft<br>
keyboard sporting it's not-so-smart-assist technology.<br>
<br>
On Nov 3, 2014 9:22 PM, "Champ Clark III" <<a href="mailto:cclark@quadrantsec.com" target="_blank">cclark@quadrantsec.com</a>> wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<br>
I think David means something like:<br>
<br>
./configure --enable-preformance-pigs<br>
<br>
I'm not a huge fan of this for a couple of reasons.<br>
<br>
In your example, you want to find hex values. I'd rather see a lognorm<br>
"parser" created for this purpose. I'm afraid if we start with regular<br>
expressions, we'll end up mixing rules (RE and non-RE) and it will make<br>
things very confusing. I really like the way lognorm's "masking" works.<br>
I'd rather not see that break.<br>
<br>
<br>
<br>
On 11/03/2014 07:15 AM, singh.janmejay wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
We log a warning?<br>
<br>
--<br>
Regards,<br>
Janmejay<br>
<br>
PS: Please blame the typos in this mail on my phone's uncivilized soft<br>
</blockquote>
keyboard sporting it's not-so-smart-assist technology.<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>
On Nov 3, 2014 5:37 PM, "David Lang" <<a href="mailto:david@lang.hm" target="_blank">david@lang.hm</a><br>
</blockquote>
<mailto:<a href="mailto:david@lang.hm" target="_blank">david@lang.hm</a>> <<a href="mailto:david@lang.hm" target="_blank">david@lang.hm</a>>> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
On Mon, 3 Nov 2014, singh.janmejay wrote:<br>
<br>
I am thinking of it as a 2nd class field-type.<br>
<br>
By that I mean, one gets best performance from 1st class<br>
</blockquote>
supported<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
field-types, but if for some reason that is not sufficient for<br>
</blockquote>
someone,<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
they can use a regex-field-type. It may be a little low on<br>
</blockquote>
performance, but<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
then it unblocks people immediately.<br>
<br>
I can do it, just need to know we are not ideologically against<br>
</blockquote>
it.<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Kind of construct im thinking of:<br>
<br>
%foo:regex:[a-f0-9]+% to match hex-numbers for instance.<br>
<br>
Thoughts?<br>
<br>
<br>
Since this will be such a performance pig compared to the existing<br>
</blockquote>
parse tree, how about requiring a 'enable low performance types' flag or<br>
something like that to enable it?<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
There needs to be some good indicator that this is a performance<br>
</blockquote>
problem.<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
David Lang<br>
______________________________<u></u>_________________<br>
Lognorm mailing list<br>
<a href="mailto:Lognorm@lists.adiscon.com" target="_blank">Lognorm@lists.adiscon.com</a> <mailto:<a href="mailto:Lognorm@lists.adiscon.com" target="_blank">Lognorm@lists.adiscon.<u></u>com</a>><br>
</blockquote>
<<a href="mailto:Lognorm@lists.adiscon.com" target="_blank">Lognorm@lists.adiscon.com</a>><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<a href="http://lists.adiscon.net/mailman/listinfo/lognorm" target="_blank">http://lists.adiscon.net/<u></u>mailman/listinfo/lognorm</a><br>
<br>
______________________________<u></u>_________________<br>
Lognorm mailing list<br>
<a href="mailto:Lognorm@lists.adiscon.com" target="_blank">Lognorm@lists.adiscon.com</a> <mailto:<a href="mailto:Lognorm@lists.adiscon.com" target="_blank">Lognorm@lists.adiscon.<u></u>com</a>><br>
</blockquote>
<<a href="mailto:Lognorm@lists.adiscon.com" target="_blank">Lognorm@lists.adiscon.com</a>><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<a href="http://lists.adiscon.net/mailman/listinfo/lognorm" target="_blank">http://lists.adiscon.net/<u></u>mailman/listinfo/lognorm</a><br>
<br>
<br>
<br>
______________________________<u></u>_________________<br>
Lognorm mailing list<br>
<a href="mailto:Lognorm@lists.adiscon.com" target="_blank">Lognorm@lists.adiscon.com</a><br>
<a href="http://lists.adiscon.net/mailman/listinfo/lognorm" target="_blank">http://lists.adiscon.net/<u></u>mailman/listinfo/lognorm</a><br>
</blockquote>
<br>
<br>
- --<br>
- - Quadrant Information Security<br>
Champ Clark III<br>
o: 800.538.9357 x 101<br>
c: 850.443.2440<br>
-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v1.4.11 (GNU/Linux)<br>
<br>
iQEcBAEBAgAGBQJUV6S0AAoJENnmXt<u></u>7Lmc3KAwEH/jiwhj/<u></u>nhFRpvRm7DttrvYTE<br>
U7kHpjToIMlCSiJqiS4bnvOTS4oTG6<u></u>mQ5myYzAr16ITTIJQLnJSHmVWBgxlG<u></u>dUlM<br>
Kq33I+<u></u>zYjfUK2Go01PSoLjoE3rgdGa1hptFH<u></u>VUZREuRkzSP6THtXn8XhexmZzdpH<br>
1lC+<u></u>ZXwNZ9k7FsWm3M027I8zGDKnvZLVdf<u></u>2UJUElyrNxmWW04ieR3lqJ5qh3Uj8l<br>
OvTzEDYObghwyS6hThNb1oMz2Sr1AD<u></u>/mWu+<u></u>sri1BDKqlPyMkQgYe8KNyI4sKBQHL<br>
AdCi3TXMvYa8WMb5AOVL4tX0QrOgwN<u></u>j5mbpeWb2vWrV/<u></u>S2mkN39TZbE406W91T8=<br>
=rGsk<br>
-----END PGP SIGNATURE-----<br>
<br>
<br>
______________________________<u></u>_________________<br>
Lognorm mailing list<br>
<a href="mailto:Lognorm@lists.adiscon.com" target="_blank">Lognorm@lists.adiscon.com</a><br>
<a href="http://lists.adiscon.net/mailman/listinfo/lognorm" target="_blank">http://lists.adiscon.net/<u></u>mailman/listinfo/lognorm</a><br>
<br>
<br>
</blockquote></blockquote>
</blockquote>
<br>_______________________________________________<br>
Lognorm mailing list<br>
<a href="mailto:Lognorm@lists.adiscon.com">Lognorm@lists.adiscon.com</a><br>
<a href="http://lists.adiscon.net/mailman/listinfo/lognorm" target="_blank">http://lists.adiscon.net/mailman/listinfo/lognorm</a><br>
<br>_______________________________________________<br>
Lognorm mailing list<br>
<a href="mailto:Lognorm@lists.adiscon.com">Lognorm@lists.adiscon.com</a><br>
<a href="http://lists.adiscon.net/mailman/listinfo/lognorm" target="_blank">http://lists.adiscon.net/mailman/listinfo/lognorm</a><br>
<br></blockquote></div>