remove PID from slowquery log
This commit is contained in:
parent
1261000e33
commit
598d57359f
2 changed files with 1 additions and 2 deletions
|
|
@ -221,7 +221,6 @@ func splitAWSRDS(b LogEventBatch) ([]RSysLogMessage, bool) {
|
|||
out = append(out, RSysLogMessage{
|
||||
Timestamp: event.Timestamp.Time(),
|
||||
ProgramName: databaseName,
|
||||
PID: 1,
|
||||
Hostname: "aws-rds",
|
||||
Message: event.Message,
|
||||
})
|
||||
|
|
|
|||
|
|
@ -242,7 +242,7 @@ func TestSplitRDS(t *testing.T) {
|
|||
}
|
||||
lines := Split(input)
|
||||
expected := [][]byte{
|
||||
[]byte(`2017-06-26T23:32:23.285001+00:00 aws-rds production-aurora-test-db[1]: Slow query: select * from table.`),
|
||||
[]byte(`2017-06-26T23:32:23.285001+00:00 aws-rds production-aurora-test-db: Slow query: select * from table.`),
|
||||
}
|
||||
assert.Equal(t, expected, lines)
|
||||
for _, line := range expected {
|
||||
|
|
|
|||
Loading…
Reference in a new issue