The Log4j appender is batching events because it is using bulk indexing. If you are worried, you can set the bulk action size to an extreme high value and increase heap to some GB only for buffering log messages, together with a reasonable flush interval.
Jörg On Mon, Jul 21, 2014 at 9:14 PM, Ivan Brusic <[email protected]> wrote: > I was indexing events into Elasticsearch via the standard SocketAppender > into Logstash, but I stopped doing so since the SocketAppender was not > releasing threads. Great to see a direct approach, but I like to use > Logstash in the middle as a buffer in order to batch events. > > -- > Ivan > > > On Sat, Jul 19, 2014 at 8:59 AM, Alfredo Serafini <[email protected]> > wrote: > >> I'll try it as soon as I can! >> thanks, >> Alfredo >> :-) >> >> Il giorno venerdì 18 luglio 2014 10:08:14 UTC+2, Jörg Prante ha scritto: >> >>> Hi, >>> >>> I released a Log4j2 Elasticsearch appender >>> >>> https://github.com/jprante/log4j2-elasticsearch >>> >>> in the hope it is useful. >>> >>> Best, >>> >>> Jörg >>> >> -- >> You received this message because you are subscribed to the Google Groups >> "elasticsearch" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/elasticsearch/dce481d9-ac3e-4fd0-aaba-3a4c69d07d34%40googlegroups.com >> <https://groups.google.com/d/msgid/elasticsearch/dce481d9-ac3e-4fd0-aaba-3a4c69d07d34%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> >> For more options, visit https://groups.google.com/d/optout. >> > > -- > You received this message because you are subscribed to the Google Groups > "elasticsearch" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQCppMVB-9_0btCXtPTo67c%2BMFziYDff0qwiptj4kn-hyw%40mail.gmail.com > <https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQCppMVB-9_0btCXtPTo67c%2BMFziYDff0qwiptj4kn-hyw%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "elasticsearch" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAKdsXoGim0o0LVVFRoLAM2DOHgS-4wM%2BariaLrF3aBg6Vjs2Nw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
