<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Thank you Gabor,</p>
    <p>Your below comments were very helpful and i suspect i've solved
      the java issue (maybe i should open a new thread).</p>
    <p>After setting correctly the java env in bashrc, this the output i
      get from #syslog-ng -Fve command:</p>
    <p><br>
    </p>
    <p>Error parsing config, syntax error, unexpected $end, expecting
      ';' in /etc/syslog-ng/syslog-ng.conf:<br>
      173     log { source(s_src); filter(f_messages);
      destination(d_messages); };<br>
      174     <br>
      175     log { source(s_src); filter(f_console);
      destination(d_console_all);<br>
      176                         destination(d_xconsole); };<br>
      177     log { source(s_src); filter(f_crit);
      destination(d_console); };<br>
      178---> <br>
      178---> ^<br>
      179     # All messages send to a remote site<br>
      180     #<br>
      181     #log { source(s_src); destination(d_net); };<br>
      182     log { source(s_net); destination(d_es);
      flags(flow-control); };<br>
      183     <br>
    </p>
    <p><br>
    </p>
    <p>I cannot see any syntax error (regarding the ';') in my
      syslong-ng.conf file. Is there any know bug related to this. Also,
      i wonder why "log {---}' syntaxes are returning errors.</p>
    <p><br>
    </p>
    <p>Regards,<br>
    </p>
    <p><br>
    </p>
    <p><br>
    </p>
    <br>
    <div class="moz-cite-prefix">Le 25/05/2018 à 10:20, Nagy, Gábor a
      écrit :<br>
    </div>
    <blockquote type="cite"
cite="mid:CAETAYnBw7Wmcb5uXUZWGcAXH7CFf9F_r3LFDcS3qp8AiaUccNw@mail.gmail.com">
      <div dir="ltr">Sorry I forgot to link our blog post about common
        java problems.
        <div>It could help and explain some common errors during
          installation.<br>
          <div><br>
          </div>
          <div><a
href="https://syslog-ng.com/blog/troubleshooting-java-support-syslog-ng/"
              moz-do-not-send="true">https://syslog-ng.com/blog/troubleshooting-java-support-syslog-ng/</a><br>
          </div>
        </div>
        <div><br>
        </div>
        <div>Regards,</div>
        <div>Gabor</div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Fri, May 25, 2018 at 11:35 AM, Nagy,
          Gábor <span dir="ltr"><<a
              href="mailto:gabor.nagy@balabit.com" target="_blank"
              moz-do-not-send="true">gabor.nagy@balabit.com</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div dir="ltr">Hi Komi!<br>
              <br>
              You need the java package for syslog-ng too:
              "syslog-ng-mod-java".
              <div>What is the source of the syslog-ng package you
                installed?</div>
              <div><br>
              </div>
              <div>You will need additional steps after you have
                installed the syslog-ng java package.</div>
              <div>In our admin we have detailed instructions to setup
                elasticsearch2 destination:<br>
                <a
href="https://syslog-ng.com/documents/html/syslog-ng-ose-latest-guides/en/syslog-ng-ose-guide-admin/html/configuring-destinations-elasticsearch2.html"
                  target="_blank" moz-do-not-send="true">https://syslog-ng.com/<wbr>documents/html/syslog-ng-ose-<wbr>latest-guides/en/syslog-ng-<wbr>ose-guide-admin/html/<wbr>configuring-destinations-<wbr>elasticsearch2.html</a><br>
              </div>
              <div><br>
              </div>
              <div>Feel free to ask if you got stuck!</div>
              <div><br>
              </div>
              <div>Regards,</div>
              <div>Gabor</div>
            </div>
            <div class="HOEnZb">
              <div class="h5">
                <div class="gmail_extra"><br>
                  <div class="gmail_quote">On Fri, May 25, 2018 at 10:49
                    AM, Komi Elitcha <span dir="ltr"><<a
                        href="mailto:kmw.elitcha@gmail.com"
                        target="_blank" moz-do-not-send="true">kmw.elitcha@gmail.com</a>></span>
                    wrote:<br>
                    <blockquote class="gmail_quote" style="margin:0 0 0
                      .8ex;border-left:1px #ccc solid;padding-left:1ex">Good
                      day all,<br>
                      <br>
                      I'm new to this mailing list.<br>
                      <br>
                      I'm setting up syslong-ng+elasticsearch+kiban<wbr>a
                      on an Ubuntu 18.04; i'm getting the following
                      output/error from command: ]#syslog-ng -Fve<br>
                      <br>
                      <br>
                      Error parsing destination, destination plugin java
                      not found in block destination elasticsearch2 (at
                      /usr/share/syslog-ng/include/s<wbr>cl/elasticsearch/plugin.conf:5<wbr>8:1):<br>
                      1<br>
                      2----->   java(<br>
                      2----->   ^^^^<br>
                      3 class_path("/usr/lib/syslog-ng<wbr>/3.15/java-modules/*.jar:/usr/<wbr>lib/syslog-ng/3.15/java-module<wbr>s/elastic-jest-client/*.jar:/o<wbr>pt/syslog-ng/jre1.8.0_171/lib/<wbr>/*.jar")<br>
                      4 class_name("org.syslog_ng.elas<wbr>ticsearch_v2.ElasticSearchDest<wbr>ination")<br>
                      5           option("index", "*log*")<br>
                      6           option("type", "syslog")<br>
                      7           option("server", "localhost")<br>
                      <br>
                      Included from /etc/syslog-ng/syslog-ng.conf:<br>
                      90      # Debian only<br>
                      91      destination d_ppp {
                      file("/var/log/ppp.log"); };<br>
                      92<br>
                      93      # Elasticsearch destination<br>
                      94      destination d_es {<br>
                      95---->     elasticsearch2(<br>
                      95---->     ^^^^^^^^^^^^^^^^<br>
                      96                cluster("syslog-ng")<br>
                      97                client-lib-dir("/usr/share/ela<wbr>sticsearch/lib/")<br>
                      98 client-lib-dir("/opt/syslog-ng<wbr>/jre1.8.0_171/lib/")<br>
                      99                time-zone("UTC")<br>
                      100               cluster-url("<a
                        href="http://localhost:9200" rel="noreferrer"
                        target="_blank" moz-do-not-send="true">http://localhost:<wbr>9200</a>")<br>
                      <br>
                      <br>
                      Any help is welcome.<br>
                      <br>
                      Thanks.<br>
                      <br>
                      ______________________________<wbr>______________________________<wbr>__________________<br>
                      Member info: <a
                        href="https://lists.balabit.hu/mailman/listinfo/syslog-ng"
                        rel="noreferrer" target="_blank"
                        moz-do-not-send="true">https://lists.balabit.hu/mailm<wbr>an/listinfo/syslog-ng</a><br>
                      Documentation: <a
                        href="http://www.balabit.com/support/documentation/?product=syslog-ng"
                        rel="noreferrer" target="_blank"
                        moz-do-not-send="true">http://www.balabit.com/support<wbr>/documentation/?product=syslog<wbr>-ng</a><br>
                      FAQ: <a
                        href="http://www.balabit.com/wiki/syslog-ng-faq"
                        rel="noreferrer" target="_blank"
                        moz-do-not-send="true">http://www.balabit.com/wiki/sy<wbr>slog-ng-faq</a><br>
                      <br>
                    </blockquote>
                  </div>
                  <br>
                </div>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">______________________________________________________________________________
Member info: <a class="moz-txt-link-freetext" href="https://lists.balabit.hu/mailman/listinfo/syslog-ng">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a>
Documentation: <a class="moz-txt-link-freetext" href="http://www.balabit.com/support/documentation/?product=syslog-ng">http://www.balabit.com/support/documentation/?product=syslog-ng</a>
FAQ: <a class="moz-txt-link-freetext" href="http://www.balabit.com/wiki/syslog-ng-faq">http://www.balabit.com/wiki/syslog-ng-faq</a>

</pre>
    </blockquote>
    <br>
  </body>
</html>