Skip to content

Convert Filebeat haproxy.log to ECS even more!#10143

Merged
webmat merged 9 commits intoelastic:masterfrom
webmat:ecs-haproxy-fb-part2
Jan 17, 2019
Merged

Convert Filebeat haproxy.log to ECS even more!#10143
webmat merged 9 commits intoelastic:masterfrom
webmat:ecs-haproxy-fb-part2

Conversation

@webmat
Copy link
Copy Markdown
Contributor

@webmat webmat commented Jan 17, 2019

This module was migrated prior to ECS 1.0.0-beta2, and therefore has a few things left to migrate.

Caveats

  • haproxy.bytes_read: Both the TCP logs and the HTTP logs use the field. So it's copied to http.response.bytes when parsing HTTP logs, but not when parsing TCP logs.

Renames

  • haproxy.http.response.status_code => http.response.status_code

Different scale, original fields still present:

  • haproxy.http.request.time_active_ms => event.duration
  • haproxy.tcp.processing_time_ms => event.duration

Note that haproxy.client.ip is migrated in #10141

TODO

  • Alias renamed fields to their ECS counterpart, not forgetting migration: true
  • Document field migrations in ecs-migration.yml
  • Changelog

@webmat webmat requested review from a team as code owners January 17, 2019 05:06
@webmat webmat self-assigned this Jan 17, 2019
@webmat webmat added in progress Pull request is currently in progress. module Filebeat Filebeat ecs labels Jan 17, 2019
@webmat webmat force-pushed the ecs-haproxy-fb-part2 branch 2 times, most recently from 2ead1e3 to b12abe2 Compare January 17, 2019 05:13
Copy link
Copy Markdown
Contributor

@ruflin ruflin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks for the follow up cleanup.

@webmat webmat changed the title WIP Convert Filebeat haproxy.log to ECS even more! Convert Filebeat haproxy.log to ECS even more! Jan 17, 2019
@webmat webmat force-pushed the ecs-haproxy-fb-part2 branch from b12abe2 to 013c3d5 Compare January 17, 2019 20:16
@webmat
Copy link
Copy Markdown
Contributor Author

webmat commented Jan 17, 2019

Spotted one detail prior to merging. Will merge when CI is green.

@webmat webmat merged commit 74076cc into elastic:master Jan 17, 2019
@webmat webmat deleted the ecs-haproxy-fb-part2 branch January 17, 2019 21:45
@webmat
Copy link
Copy Markdown
Contributor Author

webmat commented Jan 17, 2019

CI test failures unrelated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ecs Filebeat Filebeat in progress Pull request is currently in progress. module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants