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
Add geoip for AWS ALB client IP addresses #16198
Comments
Issue UpdateI was trying the proposed changes without success. I took the modified Then, I restarted the container and ran the module. root@wazuh:/# /var/ossec/wodles/aws/aws-s3 -b wazuh-aws-wodle-alb -t alb -s 2021-Dec-21 -p dev -d2
DEBUG: +++ Debug mode on - Level: 2
DEBUG: Generating default configuration for retries: mode standard - max_attempts 10
DEBUG: +++ Table does not exist; create
DEBUG: +++ Working on xxxx - us-west-1
DEBUG: +++ Marker: AWSLogs/xxxx/elasticloadbalancing/us-west-1/2021/12/21
DEBUG: ++ Found new log: AWSLogs/xxxx/elasticloadbalancing/us-west-1/2021/12/21/xxxx_elasticloadbalancing_us-west-1_app.ALB-framework-dev.959dfdbaed241613_20211221T0000Z_52.52.208.49_14pczeay.log.gz
DEBUG: ++ Found new log: AWSLogs/xxxx/elasticloadbalancing/us-west-1/2021/12/22/xxxx_elasticloadbalancing_us-west-1_app.ALB-framework-dev.959dfdbaed241613_20211222T0000Z_52.52.208.49_14pczeay.log.gz
DEBUG: ++ Found new log: AWSLogs/xxxx/elasticloadbalancing/us-west-1/2021/12/23/xxxx_elasticloadbalancing_us-west-1_app.ALB-framework-dev.959dfdbaed241613_20211223T0000Z_52.52.208.49_14pczeay.log.gz
DEBUG: ++ Found new log: AWSLogs/xxxx/elasticloadbalancing/us-west-1/2022/08/16/xxxx_elasticloadbalancing_us-west-1_app.ALB-framework-dev.959dfdbaed241613_20211221T0000Z_52.52.208.49_14pczeay.log
DEBUG: ++ Found new log: AWSLogs/xxxx/elasticloadbalancing/us-west-1/2022/08/16/xxxx_elasticloadbalancing_us-west-1_app.ALB-framework-dev.959dfdbaed241613_20211221T0000Z_52.52.208.49_14pczeay.log.gz
DEBUG: +++ DB Maintenance After that, I checked the ingested alerts in the indexer and any of them hadn't the desired fields.
Ingested alerts
|
@nico-stefani does your stack include #14525? It's required to generate the desired fields to geolocate. |
Yes, @rh0dy I included these changes to make the tests. You can see in the ingested alerts the field |
We have a Pull request from @rh0dy incorporating this feature in #15582.
Description
As part of release 4.4, the AWS S3 Wodle will now extract IP addresses from AWS ALB logs, as per #13095 and #14525. The IP addresses are extracted to the following fields: data.aws.target_ip and data.aws.source_ip. This PR is to preprocess those fields so that they are geolocated by Filebeat (to add country, latitude, longitude, etc.) before being stored in Elasticsearch.
Checks
The following elements have been updated or reviewed (should also be checked if no modification is required):
api/test/integration/mapping/_test_mapping.py
).The text was updated successfully, but these errors were encountered: