Update regex file for es user agent node processor (#59697) (#59794)

This commit is contained in:
Dan Hermann 2020-07-17 11:04:01 -05:00 committed by GitHub
parent 40f319a1f6
commit 48df9b1a0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 555 additions and 365 deletions

View File

@ -68,7 +68,7 @@ Which returns
"full": "Mac OS X 10.10.5"
},
"device" : {
"name" : "Other"
"name" : "Mac"
},
}
}

File diff suppressed because it is too large Load Diff

View File

@ -111,7 +111,7 @@ public class UserAgentProcessorTests extends ESTestCase {
os.put("full", "Mac OS X 10.9.2");
assertThat(target.get("os"), is(os));
Map<String, String> device = new HashMap<>();
device.put("name", "Other");
device.put("name", "Mac");
assertThat(target.get("device"), is(device));
}

View File

@ -32,7 +32,7 @@
- match: { _source.user_agent.original: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.149 Safari/537.36" }
- match: { _source.user_agent.os: {"name":"Mac OS X", "version":"10.9.2", "full":"Mac OS X 10.9.2"} }
- match: { _source.user_agent.version: "33.0.1750.149" }
- match: { _source.user_agent.device: {"name": "Other" }}
- match: { _source.user_agent.device: {"name": "Mac" }}
---
"Test user agent processor with parameters":