Jochen:
Thanks for answering.
I was discussing with Matt Maloney in his medium post
(https://medium.com/@zexxon/you-could-encapsulate-multiple-log-messages-into-a-gelf-payload-as-a-nested-json-document-bf4b6d76f160#.f8chcyjeg)
He mentioned the existence of
org.graylog2.plugin.inputs.codecs.MultiMessageCodec and I found in the
source code (org.graylog2.shared.buffers.processors.DecodingProcessor):
// This is ugly but needed for backwards compatibility of the Codec
interface in 1.x.
// TODO The Codec interface should be changed for 2.0 to support
collections of messages so we can remove this hack.
if (codec instanceof MultiMessageCodec) {
messages = ((MultiMessageCodec) codec).decodeMessages(raw);
} else {
message = codec.decode(raw);
}
Isn't there a ticket tracking the 2.0 support of collection of messages?
Thanks,
C
On Monday, February 29, 2016 at 1:26:06 AM UTC-8, Jochen Schalanda wrote:
>
> Hi Carlos,
>
> the GELF HTTP input of Graylog currently doesn't allow batching of
> messages.
>
> Feel free to create a feature request for that at
> https://github.com/Graylog2/graylog2-server/issues/.
>
>
> Cheers,
> Jochen
>
> On Saturday, 27 February 2016 07:11:12 UTC+1, Carlos Sessa wrote:
>>
>> Hello!
>>
>> I want to use Graylog to track and query events from my Android app. I
>> did the setup for the vm and everything is working. I can do a post to
>> upload an event using GELF.
>> Since I don't want to sync logs when the user is on cellular networks, I
>> want to create a library which persists logs into disk and upload when wifi
>> connection is available.
>>
>> I checked the REST API but I couldn't find a way to upload a batch of
>> GELF events. Is there a way to do it? I don't want to do 1 request per
>> event.
>>
>> Thanks!
>>
>
--
You received this message because you are subscribed to the Google Groups
"Graylog Users" 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/graylog2/0aa1a262-15b3-4834-b8a9-70a31339298e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.