Hello Kai, you can take a look at the Anonymous Statistics plugin which comes along with a custom JAX-RS resource.
- https://github.com/Graylog2/graylog-plugin-anonymous-usage-statistics/blob/1.1.1/src/main/java/org/graylog/plugins/usagestatistics/UsageStatsResource.java - https://github.com/Graylog2/graylog-plugin-anonymous-usage-statistics/blob/1.1.1/src/main/java/org/graylog/plugins/usagestatistics/UsageStatsModule.java#L57 The JAX-RS resources will be available under http://127.0.0.1:12900/plugins/:package_name/ in the Graylog REST API, e. g. http://127.0.0.1:12900/plugins/org.graylog.plugins.usagestatistics/node?pretty=true for the mentioned JAX-RS resource of the Anonymous Statistics plugin. Cheers, Jochen On Tuesday, 27 October 2015 10:14:58 UTC+1, Kai Lilleby wrote: > > Hi Gangadhar, > did you ever get a working plugin example? > Im trying to create a PluginRestResource - but can't figure out how to > properly set it up... > > Kai > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/graylog2/32ec45cc-55e6-49eb-96c4-d87f00870020%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
