Skip to content

[Azure] Application Gateway WAF: add event.reason - #10007

Merged
andrewkroh merged 12 commits into
elastic:mainfrom
jH-:add_details_data
Sep 25, 2024
Merged

[Azure] Application Gateway WAF: add event.reason#10007
andrewkroh merged 12 commits into
elastic:mainfrom
jH-:add_details_data

Conversation

@jH-

@jH- jH- commented May 29, 2024

Copy link
Copy Markdown
Contributor

Proposed commit message

Update the Azure Application Gateway pipeline to parse and include values from
`json.properties.details.data` into the ECS `event.reason` field.

This field provides action context by logging the specific data found in 
requests that matched a rule.

It excludes the field if `json.properties.details.message` contains values indicating 
missing headers or content were the reason to avoid unnecessary duplicate data.

Checklist

  • I have reviewed tips for building integrations and this pull request is aligned with them.
  • I have added an entry to my package's changelog.yml file.

How to test this PR locally

elastic-package stack up -v -d

# check that the updated integration version is included (https://localhost:8080/search?package=azure)

elastic-package test pipeline

elastic-package stack down
@jH-
jH- requested review from a team as code owners May 29, 2024 13:52
@cla-checker-service

cla-checker-service Bot commented May 29, 2024

Copy link
Copy Markdown

💚 CLA has been signed

@jH-

This comment was marked as resolved.

@botelastic

botelastic Bot commented Jul 3, 2024

Copy link
Copy Markdown

Hi! We just realized that we haven't looked into this PR in a while. We're sorry! We're labeling this issue as Stale to make it hit our filters and make sure we get back to it as soon as possible. In the meantime, it'd be extremely helpful if you could take a look at it as well and confirm its relevance. A simple comment with a nice emoji will be enough :+1. Thank you for your contribution!

@botelastic botelastic Bot added the Stalled label Jul 3, 2024
@jamiehynds jamiehynds added the Team:Security-Service Integrations Security Service Integrations team [elastic/security-service-integrations] label Jul 3, 2024
@elasticmachine

Copy link
Copy Markdown

Pinging @elastic/security-service-integrations (Team:Security-Service Integrations)

@botelastic botelastic Bot removed the Stalled label Jul 3, 2024
@jamiehynds jamiehynds added enhancement New feature or request Stalled labels Jul 3, 2024
@botelastic botelastic Bot removed the Stalled label Jul 3, 2024
@botelastic botelastic Bot removed the Stalled label Jul 3, 2024
@kcreddy

kcreddy commented Jul 5, 2024

Copy link
Copy Markdown
Contributor

/test

@elasticmachine

elasticmachine commented Jul 5, 2024

Copy link
Copy Markdown

🚀 Benchmarks report

Package azure 👍(2) 💚(0) 💔(9)

Expand to view
Data stream Previous EPS New EPS Diff (%) Result
springcloudlogs 4098.36 3115.26 -983.1 (-23.99%) 💔
application_gateway 2967.36 1733.1 -1234.26 (-41.59%) 💔
auditlogs 1945.53 1526.72 -418.81 (-21.53%) 💔
eventhub 333333.33 250000 -83333.33 (-25%) 💔
firewall_logs 1420.45 1113.59 -306.86 (-21.6%) 💔
graphactivitylogs 1834.86 1451.38 -383.48 (-20.9%) 💔
identity_protection 4608.29 2724.8 -1883.49 (-40.87%) 💔
platformlogs 4950.5 2849 -2101.5 (-42.45%) 💔
provisioning 2898.55 2288.33 -610.22 (-21.05%) 💔

To see the full report comment with /test benchmark fullreport

Comment thread packages/azure/changelog.yml Outdated
Comment thread packages/azure/changelog.yml Outdated
Comment thread packages/azure/manifest.yml Outdated
@kcreddy kcreddy added Integration:azure Azure Logs and removed Integration:aws AWS labels Jul 5, 2024
@botelastic

botelastic Bot commented Aug 4, 2024

Copy link
Copy Markdown

Hi! We just realized that we haven't looked into this PR in a while. We're sorry! We're labeling this issue as Stale to make it hit our filters and make sure we get back to it as soon as possible. In the meantime, it'd be extremely helpful if you could take a look at it as well and confirm its relevance. A simple comment with a nice emoji will be enough :+1. Thank you for your contribution!

@andrewkroh andrewkroh removed the needs CLA User must sign the Elastic Contributor License before review. label Aug 15, 2024
@andrewkroh andrewkroh added Team:Obs-InfraObs Observability Infrastructure Monitoring team [elastic/obs-infraobs-integrations] needs CLA User must sign the Elastic Contributor License before review. and removed needs CLA User must sign the Elastic Contributor License before review. labels Aug 15, 2024
@kcreddy

kcreddy commented Aug 22, 2024

Copy link
Copy Markdown
Contributor

/test

@kcreddy

kcreddy commented Aug 22, 2024

Copy link
Copy Markdown
Contributor

@jH- could you please fix the merge conflicts?

@jH-
jH- requested a review from a team as a code owner August 23, 2024 11:51
@kcreddy

kcreddy commented Aug 23, 2024

Copy link
Copy Markdown
Contributor

/test

@andrewkroh andrewkroh left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

There are a bunch of changes outside of the packages/azure directory that need to undone. I think they were the result of merge issue.

@jH- jH- left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

deleted

@jH-
jH- force-pushed the add_details_data branch from a2b7ebb to af7f7f8 Compare September 9, 2024 13:45
[git-generate]
elastic-package -C packages/azure test pipeline -g -d application_gateway
@andrewkroh
andrewkroh dismissed their stale review September 25, 2024 17:48

Merge issues were corrected. Changeset looks fine now.

@andrewkroh

Copy link
Copy Markdown
Contributor

/test

@andrewkroh
andrewkroh enabled auto-merge (squash) September 25, 2024 17:53
@andrewkroh
andrewkroh disabled auto-merge September 25, 2024 17:54
@andrewkroh
andrewkroh enabled auto-merge (squash) September 25, 2024 17:54
@andrewkroh
andrewkroh disabled auto-merge September 25, 2024 17:55
@andrewkroh
andrewkroh enabled auto-merge (squash) September 25, 2024 17:56
@andrewkroh
andrewkroh merged commit 9d46e70 into elastic:main Sep 25, 2024
@elasticmachine

Copy link
Copy Markdown

💚 Build Succeeded

History

@elastic-vault-github-plugin-prod

Copy link
Copy Markdown
Contributor

Package azure - 1.17.0 containing this change is available at https://epr.elastic.co/search?package=azure

harnish-crest-data pushed a commit to chavdaharnish/integrations that referenced this pull request Feb 4, 2025
Update the Azure Application Gateway pipeline to parse and include values from
`json.properties.details.data` into the ECS `event.reason` field.

This field provides action context by logging the specific data found in 
requests that matched a rule.

It excludes the field if `json.properties.details.message` contains values indicating 
missing headers or content were the reason to avoid unnecessary duplicate data.

---------

Co-authored-by: Johan H <johan@horde.no>
Co-authored-by: Maurizio Branca <maurizio.branca@elastic.co>
Co-authored-by: Krishna Chaitanya Reddy Burri <krish.reddy91@gmail.com>
Co-authored-by: Andrew Kroh <andrew.kroh@elastic.co>
harnish-crest-data pushed a commit to chavdaharnish/integrations that referenced this pull request Feb 5, 2025
Update the Azure Application Gateway pipeline to parse and include values from
`json.properties.details.data` into the ECS `event.reason` field.

This field provides action context by logging the specific data found in 
requests that matched a rule.

It excludes the field if `json.properties.details.message` contains values indicating 
missing headers or content were the reason to avoid unnecessary duplicate data.

---------

Co-authored-by: Johan H <johan@horde.no>
Co-authored-by: Maurizio Branca <maurizio.branca@elastic.co>
Co-authored-by: Krishna Chaitanya Reddy Burri <krish.reddy91@gmail.com>
Co-authored-by: Andrew Kroh <andrew.kroh@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request Integration:azure Azure Logs Team:Obs-InfraObs Observability Infrastructure Monitoring team [elastic/obs-infraobs-integrations] Team:Security-Service Integrations Security Service Integrations team [elastic/security-service-integrations]

7 participants