Skip to content

Commit

Permalink
Fix test failure after introducing aliases.
Browse files Browse the repository at this point in the history
`'Cannot write to a field alias [system.auth.timestamp].'`
  • Loading branch information
Mathieu Martin committed Nov 27, 2018
1 parent 7524102 commit c789b17
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 22 deletions.
5 changes: 5 additions & 0 deletions filebeat/module/system/auth/ingest/pipeline.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@
"ignore_failure": true
}
},
{
"remove": {
"field": "system.auth.timestamp"
}
},
{
"geoip": {
"field": "source.ip",
Expand Down
23 changes: 1 addition & 22 deletions filebeat/module/system/auth/test/test.log-expected.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"source.port": 63673,
"system.auth.ssh.method": "publickey",
"system.auth.ssh.signature": "RSA 39:33:99:e9:a0:dc:f2:33:a3:e5:72:3b:7c:3a:56:84",
"system.auth.timestamp": "Feb 21 21:54:44",
"user.name": "vagrant"
},
{
Expand All @@ -27,7 +26,6 @@
"source.ip": "192.168.33.1",
"source.port": 58803,
"system.auth.ssh.method": "password",
"system.auth.timestamp": "Feb 23 00:13:35",
"user.name": "vagrant"
},
{
Expand All @@ -40,7 +38,6 @@
"log.offset": 254,
"process.pid": 3430,
"source.ip": "10.0.2.2",
"system.auth.timestamp": "Feb 21 21:56:12",
"user.name": "test"
},
{
Expand All @@ -61,7 +58,6 @@
"source.ip": "116.31.116.24",
"source.port": 29160,
"system.auth.ssh.method": "password",
"system.auth.timestamp": "Feb 20 08:35:22",
"user.name": "root"
},
{
Expand All @@ -75,7 +71,6 @@
"system.auth.sudo.pwd": "/home/vagrant",
"system.auth.sudo.tty": "pts/0",
"system.auth.sudo.user": "root",
"system.auth.timestamp": "Feb 21 23:35:33",
"user.name": "vagrant"
},
{
Expand All @@ -91,8 +86,7 @@
"source.geo.location.lat": 34.7725,
"source.geo.location.lon": 113.7266,
"source.ip": "123.57.245.163",
"system.auth.ssh.dropped_ip": "123.57.245.163",
"system.auth.timestamp": "Feb 19 15:30:04"
"system.auth.ssh.dropped_ip": "123.57.245.163"
},
{
"@timestamp": "2018-02-23T00:08:48.000Z",
Expand All @@ -105,7 +99,6 @@
"system.auth.sudo.pwd": "/home/vagrant",
"system.auth.sudo.tty": "pts/1",
"system.auth.sudo.user": "root",
"system.auth.timestamp": "Feb 23 00:08:48",
"user.name": "vagrant"
},
{
Expand All @@ -120,21 +113,8 @@
"system.auth.sudo.pwd": "/home/vagrant",
"system.auth.sudo.tty": "pts/1",
"system.auth.sudo.user": "root",
"system.auth.timestamp": "Feb 24 00:13:02",
"user.name": "tsg"
},
{
"@timestamp": "2018-02-22T11:47:05.000Z",
"event.dataset": "auth",
"event.module": "system",
"host.hostname": "localhost",
"input.type": "log",
"log.offset": 861,
"process.pid": 6991,
"system.auth.groupadd.gid": 48,
"system.auth.groupadd.name": "apache",
"system.auth.timestamp": "Feb 22 11:47:05"
},
{
"@timestamp": "2018-02-22T11:47:05.000Z",
"event.dataset": "auth",
Expand All @@ -144,7 +124,6 @@
"input.type": "log",
"log.offset": 934,
"process.pid": 6995,
"system.auth.timestamp": "Feb 22 11:47:05",
"system.auth.useradd.home": "/usr/share/httpd",
"system.auth.useradd.shell": "/sbin/nologin",
"user.id": 48,
Expand Down

0 comments on commit c789b17

Please sign in to comment.