I am looking for assistance with a plugin I am trying to create for a 
pipeline processor function.

I followed along with the tutorial 
(https://www.graylog.org/blog/71-writing-your-own-graylog-processing-pipeline-functions)
 and 
also looked at source code for other pipeline processor functions. I cannot 
for the life of me figure out what is causing it to error out. I'm trying 
to get to a point where I can output debug code when I test the function 
out.

Everything appears to compile fine when I *mvn package* the code. 

My graylog-plugin.properties file lists *isolated**=false*. I'm testing the 
plugin using the* 2.1.3* ova file.

Path to the project on my GitHub page:
https://github.com/billmurrin/graylog-plugin-slookup-function

When I add it as a plugin and restart graylog I get the following error:

*2017-02-15_10:58:04.98543 2017-02-15 10:58:04,984 INFO : 
org.graylog2.bootstrap.CmdLineTool - Loaded plugin: Stream Lookup (SLookup) 
pipeline function 1.0.0 [StreamLookupFunction]*
2017-02-15_10:58:04.98566 2017-02-15 10:58:04,985 INFO : 
org.graylog2.bootstrap.CmdLineTool - Loaded plugin: Elastic Beats Input 
1.1.5 [org.graylog.plugins.beats.BeatsInputPlugin]
2017-02-15_10:58:04.98619 2017-02-15 10:58:04,985 INFO : 
org.graylog2.bootstrap.CmdLineTool - Loaded plugin: Collector 1.1.3 
[org.graylog.plugins.collector.CollectorPlugin]
2017-02-15_10:58:04.98712 2017-02-15 10:58:04,986 INFO : 
org.graylog2.bootstrap.CmdLineTool - Loaded plugin: Enterprise Integration 
Plugin 1.1.3 
[org.graylog.plugins.enterprise_integration.EnterpriseIntegrationPlugin]
2017-02-15_10:58:04.98821 2017-02-15 10:58:04,986 INFO : 
org.graylog2.bootstrap.CmdLineTool - Loaded plugin: MapWidgetPlugin 1.1.3 
[org.graylog.plugins.map.MapWidgetPlugin]
2017-02-15_10:58:04.98892 2017-02-15 10:58:04,986 INFO : 
org.graylog2.bootstrap.CmdLineTool - Loaded plugin: Pipeline Processor 
Plugin 1.1.3 [org.graylog.plugins.pipelineprocessor.ProcessorPlugin]
2017-02-15_10:58:04.98939 2017-02-15 10:58:04,987 INFO : 
org.graylog2.bootstrap.CmdLineTool - Loaded plugin: QuickValuesPlusWidget 
1.0.0 [org.graylog.plugins.quickvaluesplus.QuickValuesPlusWidgetPlugin]
2017-02-15_10:58:04.99000 2017-02-15 10:58:04,987 INFO : 
org.graylog2.bootstrap.CmdLineTool - Loaded plugin: Anonymous Usage 
Statistics 2.1.3 [org.graylog.plugins.usagestatistics.UsageStatsPlugin]


2017-02-15_10:58:05.23546 2017-02-15 10:58:05,234 INFO : 
org.hibernate.validator.internal.util.Version - HV000001: Hibernate 
Validator 5.2.4.Final
2017-02-15_10:58:05.77808* Exception in thread "main" 
java.lang.NoClassDefFoundError: 
org/graylog/plugins/pipelineprocessor/ast/functions/AbstractFunction*
2017-02-15_10:58:05.77839       at 
java.lang.ClassLoader.defineClass1(Native Method)
2017-02-15_10:58:05.77926       at 
java.lang.ClassLoader.defineClass(ClassLoader.java:763)
2017-02-15_10:58:05.77946       at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
2017-02-15_10:58:05.78004       at 
java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
2017-02-15_10:58:05.78028       at 
java.net.URLClassLoader.access$100(URLClassLoader.java:73)
2017-02-15_10:58:05.78089       at 
java.net.URLClassLoader$1.run(URLClassLoader.java:368)
2017-02-15_10:58:05.78137       at 
java.net.URLClassLoader$1.run(URLClassLoader.java:362)
2017-02-15_10:58:05.78227       at 
java.security.AccessController.doPrivileged(Native Method)
2017-02-15_10:58:05.78292       at 
java.net.URLClassLoader.findClass(URLClassLoader.java:361)
2017-02-15_10:58:05.78330       at 
java.lang.ClassLoader.loadClass(ClassLoader.java:424)
2017-02-15_10:58:05.78413       at 
java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:814)
2017-02-15_10:58:05.78430       at 
java.lang.ClassLoader.loadClass(ClassLoader.java:357)
2017-02-15_10:58:05.78594       at 
org.graylog.plugins.slookup.StreamLookupFunctionModule.configure(StreamLookupFunctionModule.java:22)
2017-02-15_10:58:05.78612       at 
com.google.inject.AbstractModule.configure(AbstractModule.java:62)
2017-02-15_10:58:05.78668       at 
com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:340)
2017-02-15_10:58:05.78701       at 
org.graylog2.shared.bindings.PluginBindings.configure(PluginBindings.java:51)
2017-02-15_10:58:05.78802       at 
com.google.inject.AbstractModule.configure(AbstractModule.java:62)
2017-02-15_10:58:05.78833       at 
com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:340)
2017-02-15_10:58:05.78885       at 
com.google.inject.spi.Elements.getElements(Elements.java:110)
2017-02-15_10:58:05.78925       at 
com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.java:138)
2017-02-15_10:58:05.79088       at 
com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:104)
2017-02-15_10:58:05.79124       at 
com.google.inject.Guice.createInjector(Guice.java:99)
2017-02-15_10:58:05.79306       at 
org.graylog2.shared.bindings.Hk2GuiceBridgeJitInjector.create(Hk2GuiceBridgeJitInjector.java:60)
2017-02-15_10:58:05.79325       at 
org.graylog2.shared.bindings.GuiceInjectorHolder.createInjector(GuiceInjectorHolder.java:32)
2017-02-15_10:58:05.79387       at 
org.graylog2.bootstrap.CmdLineTool.setupInjector(CmdLineTool.java:379)
2017-02-15_10:58:05.79403       at 
org.graylog2.bootstrap.CmdLineTool.run(CmdLineTool.java:193)
2017-02-15_10:58:05.79446       at 
org.graylog2.bootstrap.Main.main(Main.java:44)
2017-02-15_10:58:05.79481 Caused by: java.lang.ClassNotFoundException: 
org.graylog.plugins.pipelineprocessor.ast.functions.AbstractFunction
2017-02-15_10:58:05.79523       at 
java.net.URLClassLoader.findClass(URLClassLoader.java:381)
2017-02-15_10:58:05.79549       at 
java.lang.ClassLoader.loadClass(ClassLoader.java:424)
2017-02-15_10:58:05.79596       at 
java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:814)
2017-02-15_10:58:05.79620       at 
java.lang.ClassLoader.loadClass(ClassLoader.java:357)
2017-02-15_10:58:05.79668       ... 27 more
2017-02-15_10:58:05.81276 It looks like you are trying to access MongoDB 
over HTTP on the native driver port.

Any assistance anyone can provide is appreciated.

-Bill

-- 
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 graylog2+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/graylog2/981edb8c-a8c5-4f21-8468-13179822b881%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to