Just making sure I got you right: You want to create a Graylog plugin, which is calling a function from a native library? We have never tried that. Theoretically it should work using JNA, but we have no experience how stable this is. What kind of examples did you find for this? What is your use case? Maybe there are ways to solve it in a more idiomatic way.
Thank you so much, perhaps, not needed any more I finally start to understand the logic of traffic processing via staged pipeline rules. I was missing nesting conditional calculation paths.
No, calling a C/C++ .so library still important. GrayLog misses any readable and systematic documentation. A simple task of text line parsing is made impossible.
How to build a plugin that calls a C/C++ function from a .so library that takes a string of text and returns a json object?
The descriptions I find produce useless code that just simply opened with IntelliJ IDEA is full of errors:
Hi, regarding plugins in Graylog - did you work through/followed this? Plugins
Regarding JNA/JNI - do you already have experience with either one of these?
If not, I urge you to first try to create a plugin and code that uses JNA/JNI separately to figure out how both work before you try to combine it. As Dennis said earlier, we did not have a case ourselves where we needed to call native code from inside Graylog yet. But I can’t see why it shouldn’t work.