cisco_secure_email_gateway: update ingest pipeline to handle v15#7809
cisco_secure_email_gateway: update ingest pipeline to handle v15#7809efd6 merged 2 commits intoelastic:mainfrom
Conversation
1705603 to
cb56cea
Compare
🌐 Coverage report
|
|
Pinging @elastic/security-external-integrations (Team:Security-External Integrations) |
bhapas
left a comment
There was a problem hiding this comment.
There seem to be some examples here
https://www.cisco.com/c/en/us/td/docs/security/ces/ces_15-0/user_guide/b_ESA_Admin_Guide_ces_15-0/b_ESA_Admin_Guide_12_1_chapter_0100111.html
Can we not use them in pipeline tests additional to the existing ones?
|
@bhapas I've taken a look at those examples and none exercises the changes here. Adding them as tests would probably be a sensible thing to do in the long term, but it would be sensible to have a directed plan of attack. @LaZyDK Do you have suggestions about a priority ordering of messages in that example set? |
|
@efd6 Yes. Just that we release a package without any tests on it. That was my only concern. |
|
It's not that it has no tests, it just has no tests for this change. Taking the examples in that document, according to the release notes, doesn't appear to change that. There are a lot of examples in the document, and they are not structured in a way that makes it obvious which to include. |
|
@efd6 If it the Then there is an example , isn't it? |
|
@efd6 I would add the above Consolidated Event log to the tests. I think that it coveres what you need. |
|
Yeah, we had a discussion about this and agreed that this is probably what needs to be done. The log line there fails to parse out the details, but I am not convinced of copy/pasted text from documentation, so ideally we could find examples from real instances. |
|
I don't have access to any on prem devices, and I cannot grab Consolidated Events from a management cloud instance. |
a87f641 to
9d55351
Compare
..._gateway/data_stream/log/_dev/test/pipeline/test-common-consolidated-event.log-expected.json
Outdated
Show resolved
Hide resolved
9d55351 to
c452a23
Compare
The release notes[1] for v15 note that some fields have changed name: - `endTime` => `end` - `startTime` => `start` - `sourceAddress` => `src` - `sourceHostName` => `shost` To maintain backwards compatibility, provide alternations for both cases as pattern definitions in the relevant grok. [1]https://www.cisco.com/c/dam/en/us/td/docs/security/esa/esa15-0/release_notes/Secure_Email_15-0_Release_Notes.pdf After this change, the only place that the old names are found in the elasticsearch directory is in the pattern definitions. ``` $ rg '(endTime|startTime|sourceAddress|sourceHostName)' data_stream/log/elasticsearch data_stream/log/elasticsearch/ingest_pipeline/pipeline_consolidated_event.yml 58: STARTTIME: '(startTime|start)' 59: ENDTIME: '(endTime|end)' 60: SOURCEADDRESS: '(sourceAddress|src)' 61: SOURCEHOSTNAME: '(sourceHostName|shost)' ```
c452a23 to
793f6cc
Compare
793f6cc to
bb76772
Compare
|
Package cisco_secure_email_gateway - 1.16.0 containing this change is available at https://epr.elastic.co/search?package=cisco_secure_email_gateway |
2 similar comments
|
Package cisco_secure_email_gateway - 1.16.0 containing this change is available at https://epr.elastic.co/search?package=cisco_secure_email_gateway |
|
Package cisco_secure_email_gateway - 1.16.0 containing this change is available at https://epr.elastic.co/search?package=cisco_secure_email_gateway |
What does this PR do?
The release notes for v15 note that some fields have changed name:
endTime=>endstartTime=>startsourceAddress=>srcsourceHostName=>shostTo maintain backwards compatibility, provide alternations for both cases as pattern definitions in the relevant grok.
After this change, the only place that the old names are found in the elasticsearch directory is in the pattern definitions.
Ideally, we would have test cases for this, but they are not available at this stage.This is now added.The change also fixes the handling of logs that do not include a syslog priority, and the conversion of
event.{start,end}to correctly formatted dates, and their type mappings.Checklist
changelog.ymlfile.Author's Checklist
How to test this PR locally
Related issues
Screenshots