Skip to content

Commit c0431f8

Browse files
authored
Merge pull request #1198 from jsminem/jm-update-log-level
[main] Update log level from info to debug
2 parents 5c8ad0a + cb273a8 commit c0431f8

7 files changed

Lines changed: 5 additions & 5 deletions

File tree

filter-plugin/logstash-filter-cockroachdb-guardium/src/main/java/com/ibm/guardium/cockroachdb/CockroachdbGuardiumFilter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ public Collection<Event> filter(Collection<Event> events, FilterMatchListener fi
121121
e.setField(GuardConstants.GUARDIUM_RECORD_FIELD_NAME, gson.toJson(record));
122122

123123
filterMatchListener.filterMatched(e);
124-
log.info("==========>Final JSON to be send to Guardium: {}", gson.toJson(record));
124+
log.debug("==========>Final JSON to be send to Guardium: {}", gson.toJson(record));
125125

126126
} catch (Exception exception) {
127127
log.error("CockroachDB Filter: Error parsing CockroachDB event: " + exception.getMessage(), exception);

filter-plugin/logstash-filter-singlestore-guardium/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ The Guardium universal connector is the Guardium entry point for native audit lo
125125

126126
1. On the collector, go to Setup > Tools and Views > Configure Universal Connector.
127127
2. First enable the Universal Guardium connector, if it is disabled already.
128-
3. Click Upload File and select the offline [logstash-filter-singlestoredb_guardium_filter.zip](https://github.com/IBM/universal-connectors/releases/download/v1.7.0/logstash-filter-singlestoredb_guardium_filter.zip) plug-in. After it is uploaded, click OK.
128+
3. Click Upload File and select the offline [logstash-filter-singlestoredb_guardium_filter.zip](SingleStoreOverFilebeatPackage/logstash-filter-singlestoredb_guardium_filter.zip) plug-in. After it is uploaded, click OK.
129129
4. Click the Plus sign to open the Connector Configuration dialog box.
130130
5. Type a name in the Connector name field.
131131
6. Update the input section to add the details from the [singlestoreFilebeat.conf](./singleStoreFilebeat.conf) file input section, omitting the keyword "input{" at the beginning and its corresponding "}" at the end.

filter-plugin/logstash-filter-singlestore-guardium/src/main/java/com/ibm/guardium/singlestore/SingleStoredbGuardiumFilter.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ public class SingleStoredbGuardiumFilter implements Filter {
3939
context.setConfigLocation(file.toURI());
4040
}
4141
} catch (Exception e) {
42-
System.out.println("====: " + e.getMessage());
42+
System.err.println("Failed to load log4j configuration: " + e.getMessage());
43+
e.printStackTrace();
4344
}
4445
}
4546

@@ -112,8 +113,7 @@ record = parser.parseRecord(inputData);
112113
if (record != null) {
113114
e.setField(GuardConstants.GUARDIUM_RECORD_FIELD_NAME, gson.toJson(record));
114115
matchListener.filterMatched(e);
115-
log.info("==========>Final JSON to be send to Guardium: {}", gson.toJson(record));
116-
System.out.println("==========>Final JSON to be send to Guardium: " + gson.toJson(record));
116+
log.debug("==========>Final JSON to be send to Guardium: {}", gson.toJson(record));
117117
} else {
118118
log.error("Failed to create record from event");
119119
e.tag(Constants.LOGSTASH_TAG_JSON_PARSE_ERROR);

0 commit comments

Comments
 (0)