AuditEventReader src = null;
if( "stdin".equals( p.getProperty( COLLECTOR_SERIAL_LOG ) ) ){
System.out.println( "Reading from standard input..." );
src = new ModSecurity2AuditReader( System.in, true );
return src;
}
if( p.getProperty( COLLECTOR_SERIAL_LOG ) != null ){
String input = p.getProperty( COLLECTOR_SERIAL_LOG );
if( "stdin".equalsIgnoreCase( input ) ){
System.out.println("Reading ModSecurity 2.x serial audit-log from standard input..." );
src = new ModSecurity2AuditReader( System.in );
return src;
}
File f = new File( p.getProperty( COLLECTOR_SERIAL_LOG ) );
if( ! f.canRead() )
throw new Exception("Cannot open "+f.getAbsoluteFile()+" for reading!");
src = new ModSecurity2AuditReader( f, tail );
return src;
}
if( p.getProperty( COLLECTOR_CONCURRENT_LOG ) != null && p.getProperty(COLLECTOR_CONCURRENT_INDEX) != null){