I am writing a java application which gets the http logs in json format string from servers like tomcat.
I want to check those http request/response pairs against mod-security rules for auditing-purposes.
I went through this link - https://www.trustwave.com/Resources/SpiderLabs-Blog/ModSecurity-for-Java---BETA-Testers-Needed/
Similar kinds of links I got for Apache Web Server, Nginx and IIS Servers.
But my problem is - I don't have access to Web Server, I have just http logs with all required information.
Can I integrate mod_security library using JNI/JNA to my custom java application and make it work with my custom formatted input??
Above link shows mod_security classes write logs to tomcat logs.
Is there any way to redirect mod-security event logs to some database like redis or elasticsearch or maybe logstash using some configuration??