I am actually new to graylog and frankly not quite aware of how graylog is 
triggering the drools rule engine so it might be a very simple question 
with an obvious solution which is somehow escaping me .


 I am  trying to improve an already existing (drl code) by invoking another 
java class , which is residing within a different directory as compared to 
my drl file. Understood that graylog doesnt allow adding other packages 
definitions(https://github.com/Graylog2/graylog2-server/issues/1213) , so 
tried with a direct import by putting the java class in a different 
directory, but when i try to invoke this java class my drl fails with the 
following exception `Rule Compilation error : [Rule name='BPTM logs filter']
org/graylog2/rules/Rule_BPTM_logs_filter508671689.java (42:2371) : 
*PropertiesCache 
cannot be resolved*

2016-04-06 09:11:09,601 WARN : org.graylog2.rules.DroolsEngine - Unable to 
add rules due to compilation errors.
org.graylog2.rules.RulesCompilationException: Message [id=1, level=ERROR, 
path=r1.drl, line=30, column=0
text=Rule Compilation error PropertiesCache cannot be resolved]

Note :PropertiesCache is my  java class and my drl file exists in different 
directories. Pretty much its not able to resolve the import and fails with 
compilation error

Any insights would be valuable ,

-- 
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/be0394eb-b049-4a30-bb42-598ffa20d17d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to