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