@@ -123,7 +123,7 @@ processors:
123
123
transform/postgres_logs:
124
124
log_statements:
125
125
- conditions:
126
- - body["format"] == "csv"
126
+ - log. body["format"] == "csv"
127
127
statements:
128
128
- set(log.cache, ParseCSV(log.body["original"], log.body["headers"], delimiter=",",
129
129
mode="strict"))
@@ -203,8 +203,8 @@ processors:
203
203
- set(log.attributes["process.title"], log.body["ps"]) where IsString(log.body["ps"])
204
204
- set(log.attributes["user.name"], log.body["user"]) where IsString(log.body["user"])
205
205
- conditions:
206
- - 'Len(body["message"]) > 7 and Substring(body["message"], 0, 7) == "AUDIT:
207
- "'
206
+ - 'Len(log. body["message"]) > 7 and Substring(log. body["message"], 0, 7) ==
207
+ "AUDIT: " '
208
208
statements:
209
209
- set(log.body["pgaudit"], ParseCSV(Substring(log.body["message"], 7, Len(log.body["message"])
210
210
- 7), "audit_type,statement_id,substatement_id,class,command,object_type,object_name,statement,parameter",
@@ -383,7 +383,7 @@ processors:
383
383
transform/postgres_logs:
384
384
log_statements:
385
385
- conditions:
386
- - body["format"] == "csv"
386
+ - log. body["format"] == "csv"
387
387
statements:
388
388
- set(log.cache, ParseCSV(log.body["original"], log.body["headers"], delimiter=",",
389
389
mode="strict"))
@@ -463,8 +463,8 @@ processors:
463
463
- set(log.attributes["process.title"], log.body["ps"]) where IsString(log.body["ps"])
464
464
- set(log.attributes["user.name"], log.body["user"]) where IsString(log.body["user"])
465
465
- conditions:
466
- - 'Len(body["message"]) > 7 and Substring(body["message"], 0, 7) == "AUDIT:
467
- "'
466
+ - 'Len(log. body["message"]) > 7 and Substring(log. body["message"], 0, 7) ==
467
+ "AUDIT: " '
468
468
statements:
469
469
- set(log.body["pgaudit"], ParseCSV(Substring(log.body["message"], 7, Len(log.body["message"])
470
470
- 7), "audit_type,statement_id,substatement_id,class,command,object_type,object_name,statement,parameter",
0 commit comments