<p dir="ltr">Really good ideas here. Thanks for sharing.</p>
<p dir="ltr">Some answers inline.</p>
<p dir="ltr">On May 23, 2016 6:06 PM, &quot;Balint Kovacs&quot; &lt;<a href="mailto:kovacs.balint@balasys.hu">kovacs.balint@balasys.hu</a>&gt; wrote:<br>
&gt;<br>
&gt; Hi,<br>
&gt;<br>
&gt; This is a great one, it will help sysadmins tremendously. Some of it is available in &quot;pbdtool match&quot;, but it&#39;s not a very flexible as the available syslog-ng facilities (filter, template) are hardwired. On the other hand, it helps with gathering user stories, I&#39;ve been using this for the following tasks:<br>
&gt;<br>
&gt; - patterndb building process -&gt; testing the current patterndb coverage and identify outliers in existing log data<br>
&gt; - &quot;offline&quot; processing log messages, without running a syslog-ng daemon<br>
&gt;     - basic filtering, &quot;grep on steroids&quot;<br>
&gt;     - advanced, message parser (e.g. patterndb) based filtering<br>
&gt;     - rewrite, adding metadata and anonymisation<br>
&gt;     - transform output using templates<br>
&gt;     - postprocessing old raw logs with new patterndb rules<br>
&gt;<br>
&gt; What is not available in pbdtool is the heuristics in the initial message parsing of the source drivers, it would be great to have that implemented in the stdin driver, as it would save a great deal of time and resources if you don&#39;t have to transform the source material to a format that pdbtool likes.<br>
&gt;<br>
&gt; I for myself see specifying the configuration in the command line a bit clumsy, I would not want to deal with escaping quotation marks and parentheses and rather use an input file. </p>
<p dir="ltr">Yeah, I think both are needed. Awk supports both specifying it via the command line and specifying a file.</p>
<p dir="ltr">Using apostrophes you can specify parentheses without escaping. Anyway,we are in agreement here.<br></p>
<p dir="ltr">Also, the supplied config snippet can grow very fast to a level where it is not quite well readable without indentation. Nevertheless this might be useful for quick, one-shot tests.<br>
&gt;<br>
&gt; It would also be great if this tool could be used to test very complex log routing setups by being able to use your _existing_ syslog-ng configuration and feed a test message to it. It could prefix the output with the name of the chosen destination or it you want to take the idea further, you could specify which source and destination should be attached to stdin and stdout respectively, overriding the configured source and destination with the new drivers.</p>
<p dir="ltr"> The closest thing to this, that comes to my mind, is when you are stubbing out input and output streams of a library function within a unit test. I&#39;m not sure that this fits in the scope of the GSoC project, but would save quite a lot of debug time on some setups I&#39;ve encountered.</p>
<p dir="ltr">Good ideas. I am not sure how to handle complex source/destination setups.</p>
<p dir="ltr">Also this could be extremely helpful when combined with the built-in interactive config debugger (eg -i in 3.7 and current master)<br></p>
<p dir="ltr">&gt;<br>
&gt; Best regards,<br>
&gt; Balint<br>
&gt;<br>
&gt;<br>
&gt; On 05/21/2016 03:02 PM, Scheidler, Balázs wrote:<br>
&gt;&gt;<br>
&gt;&gt; Hi,<br>
&gt;&gt;<br>
&gt;&gt; This is an email where I tried to describe what I had in mind with the original idea:<br>
&gt;&gt;<br>
&gt;&gt; <a href="http://comments.gmane.org/gmane.comp.syslog-ng/17449">http://comments.gmane.org/gmane.comp.syslog-ng/17449</a><br>
&gt;&gt;<br>
&gt;&gt; It would be great to have this implemented. <br>
&gt;&gt;<br>
&gt;&gt; Cheers,<br>
&gt;&gt; Bazsi<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; -- <br>
&gt;&gt; Bazsi<br>
&gt;&gt;<br>
&gt;&gt; On Fri, May 20, 2016 at 2:10 PM, Noémi Ványi &lt;<a href="mailto:sitbackandwait@gmail.com">sitbackandwait@gmail.com</a>&gt; wrote:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Hello!<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; A new feature is going to be developed, as a part of GSOC, so syslog-ng can be started as a command line tool.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; What could the CLI do for you?<br>
&gt;&gt;&gt; pipelines of complex filtering, rewriting could be tested more easily, thus configuration could become simpler than before<br>
&gt;&gt;&gt; existing logs could be transformed<br>
&gt;&gt;&gt; The format of the new command line options is not decided yet. So your help and insight is needed to design the interface and the usage of the tool that you and other people around the world would use. :)<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; If you are intereted in contributing to the CLI, thus contributing to the syslog-ng community, please send an email to this thread. :) I am available at gitter for further info. :)<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Regards<br>
&gt;&gt;&gt; kvch<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; ______________________________________________________________________________<br>
&gt;&gt;&gt; Member info: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><br>
&gt;&gt;&gt; Documentation: <a href="http://www.balabit.com/support/documentation/?product=syslog-ng">http://www.balabit.com/support/documentation/?product=syslog-ng</a><br>
&gt;&gt;&gt; FAQ: <a href="http://www.balabit.com/wiki/syslog-ng-faq">http://www.balabit.com/wiki/syslog-ng-faq</a><br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; ______________________________________________________________________________<br>
&gt;&gt; Member info: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><br>
&gt;&gt; Documentation: <a href="http://www.balabit.com/support/documentation/?product=syslog-ng">http://www.balabit.com/support/documentation/?product=syslog-ng</a><br>
&gt;&gt; FAQ: <a href="http://www.balabit.com/wiki/syslog-ng-faq">http://www.balabit.com/wiki/syslog-ng-faq</a><br>
&gt;&gt;<br>
&gt;<br>
&gt;<br>
&gt; ______________________________________________________________________________<br>
&gt; Member info: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><br>
&gt; Documentation: <a href="http://www.balabit.com/support/documentation/?product=syslog-ng">http://www.balabit.com/support/documentation/?product=syslog-ng</a><br>
&gt; FAQ: <a href="http://www.balabit.com/wiki/syslog-ng-faq">http://www.balabit.com/wiki/syslog-ng-faq</a><br>
&gt;<br>
&gt;<br>
</p>