Skip to content

Cherry-pick #26441 to 7.x: [Filebeat] Update AWS ELB ingest pipeline#26493

Merged
kaiyan-sheng merged 1 commit intoelastic:7.xfrom
kaiyan-sheng:backport_26441_7.x
Jun 25, 2021
Merged

Cherry-pick #26441 to 7.x: [Filebeat] Update AWS ELB ingest pipeline#26493
kaiyan-sheng merged 1 commit intoelastic:7.xfrom
kaiyan-sheng:backport_26441_7.x

Conversation

@kaiyan-sheng
Copy link
Copy Markdown
Contributor

@kaiyan-sheng kaiyan-sheng commented Jun 24, 2021

Cherry-pick of PR #26441 to 7.x branch. Original message:

What does this PR do?

Updates the Filebeat aws.elb module ingest pipeline to properly parse the request URL and user agent string.

Why is it important?

Currently the request URL is being recorded as the http.request.referer when per https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-access-logs.html#access-log-entry-syntax, its the actual request, not referer. This fixes that and parses the URL via the uri_parts processor.

Checklist

  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have made corresponding change to the default configuration files
  • I have added tests that prove my fix is effective or that my feature works
  • I have added an entry in CHANGELOG.next.asciidoc or CHANGELOG-developer.next.asciidoc.

Author's Checklist

  • [ ]

How to test this PR locally

cd beats/x-pack/filebeat
TESTING_FILEBEAT_MODULES=aws TESTING_FILEBEAT_FILESETS=elb mage -v pythonIntegTest

Related issues

Use cases

Screenshots

Logs

@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/integrations (Team:Integrations)

@botelastic botelastic bot added needs_team Indicates that the issue/PR needs a Team:* label and removed needs_team Indicates that the issue/PR needs a Team:* label labels Jun 24, 2021
@kaiyan-sheng kaiyan-sheng self-assigned this Jun 24, 2021
@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: Pull request #26493 opened

  • Start Time: 2021-06-24T22:30:44.165+0000

  • Duration: 113 min 38 sec

  • Commit: 7b41a39

Test stats 🧪

Test Results
Failed 0
Passed 7365
Skipped 1201
Total 8566

Trends 🧪

Image of Build Times

Image of Tests

💚 Flaky test report

Tests succeeded.

Expand to view the summary

Test stats 🧪

Test Results
Failed 0
Passed 7365
Skipped 1201
Total 8566

@kaiyan-sheng kaiyan-sheng merged commit dd0b565 into elastic:7.x Jun 25, 2021
@kaiyan-sheng kaiyan-sheng deleted the backport_26441_7.x branch June 25, 2021 03:34
@zube zube bot removed the [zube]: Done label Sep 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport Team:Integrations Label for the Integrations team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants