public static String getName ( String eventSrcName ) { if ( eventSrcName == null ) { return null ; } if ( eventSrcName . endsWith ( "Check" ) ) { eventSrcName = eventSrcName . substring ( 0 , eventSrcName . length ( ) - 5 ) ; } return eventSrcName . substring ( eventSrcName . lastIndexOf ( ' ' ) + 1 ) ; }
Get the rule name from an audit event source name .