Skip to content

Commit

Permalink
modsecurity: add missing destination.as.organization_name field defin…
Browse files Browse the repository at this point in the history
…ition and mapping
  • Loading branch information
efd6 committed Oct 30, 2023
1 parent 3e58a9a commit ac31c3a
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 6 deletions.
5 changes: 5 additions & 0 deletions packages/modsecurity/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# newer versions go on top
- version: "1.16.1"
changes:
- description: Add missing `destination.as.*` and `denstination.geo.*` field definitions and mapping.
type: bugfix
link: https://github.com/elastic/integrations/pull/1
- version: "1.16.0"
changes:
- description: Improve 'event.original' check to avoid errors if set.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,14 @@ processors:
field: source.as.organization_name
target_field: source.as.organization.name
ignore_missing: true
- rename:
field: destination.as.asn
target_field: destination.as.number
ignore_missing: true
- rename:
field: destination.as.organization_name
target_field: destination.as.organization.name
ignore_missing: true
- set:
field: event.kind
value: event
Expand Down
10 changes: 7 additions & 3 deletions packages/modsecurity/data_stream/auditlog/fields/ecs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,12 @@
name: user_agent.version
- external: ecs
name: rule.id
- external: ecs
name: destination.address
- external: ecs
name: destination.as.number
- external: ecs
name: destination.as.organization.name
- external: ecs
name: destination.geo.city_name
- external: ecs
Expand All @@ -93,9 +99,7 @@
- external: ecs
name: destination.geo.country_name
- external: ecs
name: destination.geo.location.lat
- external: ecs
name: destination.geo.location.lon
name: destination.geo.location
- external: ecs
name: destination.geo.region_iso_code
- external: ecs
Expand Down
7 changes: 5 additions & 2 deletions packages/modsecurity/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,16 @@ The `Audit Log` dataset collects Modsecurity Audit logs.
| data_stream.dataset | Data stream dataset. | constant_keyword |
| data_stream.namespace | Data stream namespace. | constant_keyword |
| data_stream.type | Data stream type. | constant_keyword |
| destination.address | Some event destination addresses are defined ambiguously. The event will sometimes list an IP, a domain or a unix socket. You should always store the raw address in the `.address` field. Then it should be duplicated to `.ip` or `.domain`, depending on which one it is. | keyword |
| destination.as.number | Unique number allocated to the autonomous system. The autonomous system number (ASN) uniquely identifies each network on the Internet. | long |
| destination.as.organization.name | Organization name. | keyword |
| destination.as.organization.name.text | Multi-field of `destination.as.organization.name`. | match_only_text |
| destination.domain | The domain name of the destination system. This value may be a host name, a fully qualified domain name, or another host naming format. The value may derive from the original event or be added from enrichment. | keyword |
| destination.geo.city_name | City name. | keyword |
| destination.geo.continent_name | Name of the continent. | keyword |
| destination.geo.country_iso_code | Country ISO code. | keyword |
| destination.geo.country_name | Country name. | keyword |
| destination.geo.location.lat | Longitude and latitude. | geo_point |
| destination.geo.location.lon | Longitude and latitude. | geo_point |
| destination.geo.location | Longitude and latitude. | geo_point |
| destination.geo.region_iso_code | Region ISO code. | keyword |
| destination.geo.region_name | Region name. | keyword |
| destination.ip | IP address of the destination (IPv4 or IPv6). | ip |
Expand Down
2 changes: 1 addition & 1 deletion packages/modsecurity/manifest.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
format_version: "3.0.0"
name: modsecurity
title: "ModSecurity Audit"
version: "1.16.0"
version: "1.16.1"
description: Collect logs from ModSecurity with Elastic Agent
type: integration
categories:
Expand Down

0 comments on commit ac31c3a

Please sign in to comment.