Skip to content
Permalink
Browse files

suppress subsequent authentication events for tail-log op

  • Loading branch information
brendon-stephens committed Nov 27, 2019
1 parent 2e8e8df commit 903addee176a078016298f8469bcb5ad32eb7cfa
Binary file not shown.
@@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.dpdirect</groupId>
<artifactId>dpdirect</artifactId>
<version>1.0.7</version>
<version>1.0.8</version>
<packaging>jar</packaging>
<name>dpdirect</name>
<description>DPDirect is a general deployment and administration utility for use with IBM WebSphere DataPower
@@ -570,4 +570,15 @@
* The SOMA response string identifier.
*/
public static final String SOMA_RESPONSE_IDENTIFIER = ":response ";

/**
* The DataPower Message ID for Login Event
*/
public static final String LOGIN_DP_MSG_ID = "0x81000033";

/**
* The DataPower Message ID for Logout Event
*/
public static final String LOGOUT_DP_MSG_ID = "0x81000019";

}
@@ -454,10 +454,14 @@ public StringBuffer appendLines(Operation operation, String parsedText) {
for (int i = 0; i < lines.length; i++) {
String line = lines[i];
if ((!lineList.contains(line) || !uniqueEntries)) {
lineList.add(line);
/* print out to console */
if (line.length() > 1) {
outputLines.append(line).append("\n");
// suppress auth events from subsequent tail requests
if(!line.contains("[" + Constants.LOGIN_DP_MSG_ID + "]") &&
!line.contains("[" + Constants.LOGOUT_DP_MSG_ID + "]")) {
lineList.add(line);
/* print out to console */
if (line.length() > 1) {
outputLines.append(line).append("\n");
}
}
}
}
@@ -1,2 +1,2 @@
@echo off
java -cp .\dpdirect-1.0.7.jar;.\lib\log4j.jar;.\lib\xercesImpl.jar;.\lib\xml-apis.jar org.dpdirect.dpmgmt.DPDirect DEV %*
java -cp .\dpdirect-1.0.8.jar;.\lib\log4j.jar;.\lib\xercesImpl.jar;.\lib\xml-apis.jar org.dpdirect.dpmgmt.DPDirect DEV %*

0 comments on commit 903adde

Please sign in to comment.
You can’t perform that action at this time.