-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Split address and port in AWS ALB Bucket #14525
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CarlosRS9
suggested changes
Aug 12, 2022
nico-stefani
force-pushed
the
fix/13095-improve-ALB-logs-parsing
branch
from
August 12, 2022 16:36
3312bbb
to
f713b0d
Compare
nico-stefani
force-pushed
the
fix/13095-improve-ALB-logs-parsing
branch
2 times, most recently
from
August 22, 2022 13:07
2323356
to
d6b6fac
Compare
CarlosRS9
approved these changes
Aug 31, 2022
nico-stefani
force-pushed
the
fix/13095-improve-ALB-logs-parsing
branch
from
September 8, 2022 15:06
1bc43ed
to
b01f96e
Compare
davidjiglesias
approved these changes
Sep 13, 2022
…ist keys Signed-off-by: Nicolas Stefani <nicolas.stefi@wazuh.com>
Signed-off-by: Nicolas Stefani <nicolas.stefi@wazuh.com>
This reverts commit 3312bbb. Signed-off-by: Nicolas Stefani <nicolas.stefi@wazuh.com>
Signed-off-by: Nicolas Stefani <nicolas.stefi@wazuh.com>
Signed-off-by: Nicolas Stefani <nicolas.stefi@wazuh.com>
Signed-off-by: Nicolas Stefani <nicolas.stefi@wazuh.com>
Signed-off-by: Nicolas Stefani <nicolas.stefi@wazuh.com>
nico-stefani
force-pushed
the
fix/13095-improve-ALB-logs-parsing
branch
from
September 13, 2022 14:22
15afcc0
to
02f6619
Compare
davidjiglesias
approved these changes
Sep 13, 2022
4 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR closes #13095 . It improves the parse of ALB logs splitting
client_port
,target_port
,target_port_list
in separatedip
andport
for each key.Manual Test
root@1a356d9cc48c:/var/ossec# /var/ossec/framework/python/bin/python3 /var/ossec/wodles/aws/aws_s3.py -b wazuh-aws-wodle-alb -t alb -s 2021-Dec-21 -p dev -d2 DEBUG: +++ Debug mode on - Level: 2 DEBUG: +++ Table does not exist; create DEBUG: +++ Working on XXXXXXXXXXXX - us-west-1 DEBUG: +++ Marker: AWSLogs/XXXXXXXXXXXX/elasticloadbalancing/us-west-1/2021/12/21 DEBUG: ++ Found new log: AWSLogs/XXXXXXXXXXXX/elasticloadbalancing/us-west-1/2021/12/21/XXXXXXXXXXXX_elasticloadbalancing_us-west-1_app.ALB-framework-dev.959dfdbaed241613_20211221T0000Z_52.52.208.49_14pczeay.log.gz DEBUG: ++ Found new log: AWSLogs/XXXXXXXXXXXX/elasticloadbalancing/us-west-1/2021/12/22/XXXXXXXXXXXX_elasticloadbalancing_us-west-1_app.ALB-framework-dev.959dfdbaed241613_20211222T0000Z_52.52.208.49_14pczeay.log.gz DEBUG: ++ Found new log: AWSLogs/XXXXXXXXXXXX/elasticloadbalancing/us-west-1/2021/12/23/XXXXXXXXXXXX_elasticloadbalancing_us-west-1_app.ALB-framework-dev.959dfdbaed241613_20211223T0000Z_52.52.208.49_14pczeay.log.gz DEBUG: ++ Found new log: AWSLogs/XXXXXXXXXXXX/elasticloadbalancing/us-west-1/2021/12/23/XXXXXXXXXXXX_elasticloadbalancing_us-west-1_app.ALB-framework-dev.959dfdbaed241613_20211230T0000Z_52.52.208.49_14pczeay.log
The send alert with new fields.
Warning message for malformed log