Search in sources :

Example 1 with TransportsModule

use of org.graylog2.inputs.transports.TransportsModule in project graylog2-server by Graylog2.

the class MessageInputBindings method configure.

@Override
protected void configure() {
    install(new TransportsModule());
    install(new CodecsModule());
    final MapBinder<String, MessageInput.Factory<? extends MessageInput>> inputMapBinder = inputsMapBinder();
    // new style inputs, using transports and codecs
    installInput(inputMapBinder, RawTCPInput.class, RawTCPInput.Factory.class);
    installInput(inputMapBinder, RawUDPInput.class, RawUDPInput.Factory.class);
    installInput(inputMapBinder, RawAMQPInput.class, RawAMQPInput.Factory.class);
    installInput(inputMapBinder, RawKafkaInput.class, RawKafkaInput.Factory.class);
    installInput(inputMapBinder, SyslogTCPInput.class, SyslogTCPInput.Factory.class);
    installInput(inputMapBinder, SyslogUDPInput.class, SyslogUDPInput.Factory.class);
    installInput(inputMapBinder, SyslogAMQPInput.class, SyslogAMQPInput.Factory.class);
    installInput(inputMapBinder, SyslogKafkaInput.class, SyslogKafkaInput.Factory.class);
    installInput(inputMapBinder, FakeHttpMessageInput.class, FakeHttpMessageInput.Factory.class);
    installInput(inputMapBinder, GELFTCPInput.class, GELFTCPInput.Factory.class);
    installInput(inputMapBinder, GELFHttpInput.class, GELFHttpInput.Factory.class);
    installInput(inputMapBinder, GELFUDPInput.class, GELFUDPInput.Factory.class);
    installInput(inputMapBinder, GELFAMQPInput.class, GELFAMQPInput.Factory.class);
    installInput(inputMapBinder, GELFKafkaInput.class, GELFKafkaInput.Factory.class);
    installInput(inputMapBinder, JsonPathInput.class, JsonPathInput.Factory.class);
}
Also used : CodecsModule(org.graylog2.inputs.codecs.CodecsModule) SyslogTCPInput(org.graylog2.inputs.syslog.tcp.SyslogTCPInput) GELFKafkaInput(org.graylog2.inputs.gelf.kafka.GELFKafkaInput) JsonPathInput(org.graylog2.inputs.misc.jsonpath.JsonPathInput) SyslogAMQPInput(org.graylog2.inputs.syslog.amqp.SyslogAMQPInput) GELFAMQPInput(org.graylog2.inputs.gelf.amqp.GELFAMQPInput) SyslogUDPInput(org.graylog2.inputs.syslog.udp.SyslogUDPInput) FakeHttpMessageInput(org.graylog2.inputs.random.FakeHttpMessageInput) MessageInput(org.graylog2.plugin.inputs.MessageInput) GELFHttpInput(org.graylog2.inputs.gelf.http.GELFHttpInput) TransportsModule(org.graylog2.inputs.transports.TransportsModule) GELFTCPInput(org.graylog2.inputs.gelf.tcp.GELFTCPInput) SyslogKafkaInput(org.graylog2.inputs.syslog.kafka.SyslogKafkaInput) RawTCPInput(org.graylog2.inputs.raw.tcp.RawTCPInput) GELFUDPInput(org.graylog2.inputs.gelf.udp.GELFUDPInput) RawAMQPInput(org.graylog2.inputs.raw.amqp.RawAMQPInput) RawKafkaInput(org.graylog2.inputs.raw.kafka.RawKafkaInput) RawUDPInput(org.graylog2.inputs.raw.udp.RawUDPInput) FakeHttpMessageInput(org.graylog2.inputs.random.FakeHttpMessageInput)

Aggregations

CodecsModule (org.graylog2.inputs.codecs.CodecsModule)1 GELFAMQPInput (org.graylog2.inputs.gelf.amqp.GELFAMQPInput)1 GELFHttpInput (org.graylog2.inputs.gelf.http.GELFHttpInput)1 GELFKafkaInput (org.graylog2.inputs.gelf.kafka.GELFKafkaInput)1 GELFTCPInput (org.graylog2.inputs.gelf.tcp.GELFTCPInput)1 GELFUDPInput (org.graylog2.inputs.gelf.udp.GELFUDPInput)1 JsonPathInput (org.graylog2.inputs.misc.jsonpath.JsonPathInput)1 FakeHttpMessageInput (org.graylog2.inputs.random.FakeHttpMessageInput)1 RawAMQPInput (org.graylog2.inputs.raw.amqp.RawAMQPInput)1 RawKafkaInput (org.graylog2.inputs.raw.kafka.RawKafkaInput)1 RawTCPInput (org.graylog2.inputs.raw.tcp.RawTCPInput)1 RawUDPInput (org.graylog2.inputs.raw.udp.RawUDPInput)1 SyslogAMQPInput (org.graylog2.inputs.syslog.amqp.SyslogAMQPInput)1 SyslogKafkaInput (org.graylog2.inputs.syslog.kafka.SyslogKafkaInput)1 SyslogTCPInput (org.graylog2.inputs.syslog.tcp.SyslogTCPInput)1 SyslogUDPInput (org.graylog2.inputs.syslog.udp.SyslogUDPInput)1 TransportsModule (org.graylog2.inputs.transports.TransportsModule)1 MessageInput (org.graylog2.plugin.inputs.MessageInput)1