Errors when compiling a plugin

hi,

I tried to make a new pipeline processor function, based on the blog example: https://www.graylog.org/blog/71-writing-your-own-graylog-processing-pipeline-functions

For some reason, mvn gives the following error:

[ERROR] /home/kex/workspace/graylog-plugin-function-tagmatcher/src/main/java/com/example/plugins/tagmatcher/XMLTagMatcherFunction.java:[107,19] cannot find symbol
[ERROR] symbol: class ParameterDescriptor

What would be the proper import to add to make this work? Or am I doing something else wrong here?

Feeling stupid; google helped finally:

import org.graylog.plugins.pipelineprocessor.ast.functions.ParameterDescriptor;

FWIW, most Java IDEs such as IntelliJ IDEA or Eclipse provide tools to automatically find the missing imports.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.