Hi Mustafa, the whole plugin system of Graylog is very badly documented. Sorry for that!
You'll have to add a factory interface for your Output (see https://github.com/Graylog2/graylog2-plugin-output-riemann/blob/84f6569e55b8b3a2f039f017befd2cf76b8460b5/src/main/java/org/graylog2/outputs/riemann/RiemannOutput.java#L170-179 for an example) which returns the configuration and the descriptor for the Output. In the end this is required for AssistedInject ( https://github.com/google/guice/wiki/AssistedInject) to work. Cheers, Jochen On Tuesday, 21 April 2015 16:36:28 UTC+2, Mustafa Khafateh wrote: > > > I'm creating a MessageOutput plugin as described here > http://docs.graylog.org/en/latest/pages/plugins.html. > > I created required methods as empty. > > When I put the plugin and restart graylog-server, I'm getting this error > in /var/log/graylog/server/current: > ERROR: org.graylog2.plugin.inject.Graylog2Module - Unable to find an inner > class annotated with @FactoryClass in output class > com.riverbed.RedisOutput. This output will not be available! > > What does it mean? > > One thing I noticed is in RedisOutputModule.java:configure(), I have > addMessageOutput(RedisOutput.class); > > However, in other output plugins I saw, installOutput is used. Is this > what I need to do? > > e.g.: > > https://github.com/Graylog2/graylog2-plugin-output-riemann/blob/master/src/main/java/org/graylog2/outputs/riemann/RiemannOutputModule.java > > I have graylog version 1.0.1-1 (output of "aptitude show graylog") > > Thanks, > Mustafa > -- You received this message because you are subscribed to the Google Groups "graylog2" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
