remove PID from slowquery log

This commit is contained in:
Aaron Stein 2019-08-26 12:09:06 -07:00
parent 1261000e33
commit 598d57359f
2 changed files with 1 additions and 2 deletions

View file

@ -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,
})

View file

@ -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 {