mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
update pfsense pipeline version. Remove unused component templates
This commit is contained in:
@@ -1,389 +0,0 @@
|
|||||||
{
|
|
||||||
"description": "Pipeline for PFsense",
|
|
||||||
"processors": [
|
|
||||||
{
|
|
||||||
"set": {
|
|
||||||
"field": "ecs.version",
|
|
||||||
"value": "8.10.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"set": {
|
|
||||||
"field": "observer.vendor",
|
|
||||||
"value": "netgate"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"set": {
|
|
||||||
"field": "observer.type",
|
|
||||||
"value": "firewall"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rename": {
|
|
||||||
"field": "message",
|
|
||||||
"target_field": "event.original"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"set": {
|
|
||||||
"field": "event.kind",
|
|
||||||
"value": "event"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"set": {
|
|
||||||
"field": "event.timezone",
|
|
||||||
"value": "{{_tmp.tz_offset}}",
|
|
||||||
"if": "ctx._tmp?.tz_offset != null && ctx._tmp?.tz_offset != 'local'"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"grok": {
|
|
||||||
"description": "Parse syslog header",
|
|
||||||
"field": "event.original",
|
|
||||||
"patterns": [
|
|
||||||
"^(%{ECS_SYSLOG_PRI})?%{TIMESTAMP} %{GREEDYDATA:message}"
|
|
||||||
],
|
|
||||||
"pattern_definitions": {
|
|
||||||
"ECS_SYSLOG_PRI": "<%{NONNEGINT:log.syslog.priority:long}>(\\d )?",
|
|
||||||
"TIMESTAMP": "(?:%{BSD_TIMESTAMP_FORMAT}|%{SYSLOG_TIMESTAMP_FORMAT})",
|
|
||||||
"BSD_TIMESTAMP_FORMAT": "%{SYSLOGTIMESTAMP:_tmp.timestamp}(%{SPACE}%{BSD_PROCNAME}|%{SPACE}%{OBSERVER}%{SPACE}%{BSD_PROCNAME})(\\[%{POSINT:process.pid:long}\\])?:",
|
|
||||||
"BSD_PROCNAME": "(?:\\b%{NAME:process.name}|\\(%{NAME:process.name}\\))",
|
|
||||||
"NAME": "[[[:alnum:]]_-]+",
|
|
||||||
"SYSLOG_TIMESTAMP_FORMAT": "%{TIMESTAMP_ISO8601:_tmp.timestamp8601}%{SPACE}%{OBSERVER}%{SPACE}%{PROCESS}%{SPACE}(%{POSINT:process.pid:long}|-) - (-|%{META})",
|
|
||||||
"TIMESTAMP_ISO8601": "%{YEAR}-%{MONTHNUM}-%{MONTHDAY}[T ]%{HOUR}:?%{MINUTE}(?::?%{SECOND})?%{ISO8601_TIMEZONE:event.timezone}?",
|
|
||||||
"OBSERVER": "(?:%{IP:observer.ip}|%{HOSTNAME:observer.name})",
|
|
||||||
"PROCESS": "(\\(%{DATA:process.name}\\)|(?:%{UNIXPATH}*/)?%{BASEPATH:process.name})",
|
|
||||||
"BASEPATH": "[[[:alnum:]]_%!$@:.,+~-]+",
|
|
||||||
"META": "\\[[^\\]]*\\]"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"date": {
|
|
||||||
"if": "ctx._tmp.timestamp8601 != null",
|
|
||||||
"field": "_tmp.timestamp8601",
|
|
||||||
"target_field": "@timestamp",
|
|
||||||
"formats": [
|
|
||||||
"ISO8601"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"date": {
|
|
||||||
"if": "ctx.event?.timezone != null && ctx._tmp?.timestamp != null",
|
|
||||||
"field": "_tmp.timestamp",
|
|
||||||
"target_field": "@timestamp",
|
|
||||||
"formats": [
|
|
||||||
"MMM d HH:mm:ss",
|
|
||||||
"MMM d HH:mm:ss",
|
|
||||||
"MMM dd HH:mm:ss"
|
|
||||||
],
|
|
||||||
"timezone": "{{ event.timezone }}"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"grok": {
|
|
||||||
"description": "Set Event Provider",
|
|
||||||
"field": "process.name",
|
|
||||||
"patterns": [
|
|
||||||
"^%{HYPHENATED_WORDS:event.provider}"
|
|
||||||
],
|
|
||||||
"pattern_definitions": {
|
|
||||||
"HYPHENATED_WORDS": "\\b[A-Za-z0-9_]+(-[A-Za-z_]+)*\\b"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"pipeline": {
|
|
||||||
"name": "logs-pfsense.log-1.16.0-firewall",
|
|
||||||
"if": "ctx.event.provider == 'filterlog'"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"pipeline": {
|
|
||||||
"name": "logs-pfsense.log-1.16.0-openvpn",
|
|
||||||
"if": "ctx.event.provider == 'openvpn'"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"pipeline": {
|
|
||||||
"name": "logs-pfsense.log-1.16.0-ipsec",
|
|
||||||
"if": "ctx.event.provider == 'charon'"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"pipeline": {
|
|
||||||
"name": "logs-pfsense.log-1.16.0-dhcp",
|
|
||||||
"if": "[\"dhcpd\", \"dhclient\", \"dhcp6c\"].contains(ctx.event.provider)"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"pipeline": {
|
|
||||||
"name": "logs-pfsense.log-1.16.0-unbound",
|
|
||||||
"if": "ctx.event.provider == 'unbound'"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"pipeline": {
|
|
||||||
"name": "logs-pfsense.log-1.16.0-haproxy",
|
|
||||||
"if": "ctx.event.provider == 'haproxy'"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"pipeline": {
|
|
||||||
"name": "logs-pfsense.log-1.16.0-php-fpm",
|
|
||||||
"if": "ctx.event.provider == 'php-fpm'"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"pipeline": {
|
|
||||||
"name": "logs-pfsense.log-1.16.0-squid",
|
|
||||||
"if": "ctx.event.provider == 'squid'"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"pipeline": {
|
|
||||||
"name": "logs-pfsense.log-1.16.0-suricata",
|
|
||||||
"if": "ctx.event.provider == 'suricata'"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"drop": {
|
|
||||||
"if": "![\"filterlog\", \"openvpn\", \"charon\", \"dhcpd\", \"dhclient\", \"dhcp6c\", \"unbound\", \"haproxy\", \"php-fpm\", \"squid\", \"suricata\"].contains(ctx.event?.provider)"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"append": {
|
|
||||||
"field": "event.category",
|
|
||||||
"value": "network",
|
|
||||||
"if": "ctx.network != null"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"convert": {
|
|
||||||
"field": "source.address",
|
|
||||||
"target_field": "source.ip",
|
|
||||||
"type": "ip",
|
|
||||||
"ignore_failure": true,
|
|
||||||
"ignore_missing": true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"convert": {
|
|
||||||
"field": "destination.address",
|
|
||||||
"target_field": "destination.ip",
|
|
||||||
"type": "ip",
|
|
||||||
"ignore_failure": true,
|
|
||||||
"ignore_missing": true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"set": {
|
|
||||||
"field": "network.type",
|
|
||||||
"value": "ipv6",
|
|
||||||
"if": "ctx.source?.ip != null && ctx.source.ip.contains(\":\")"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"set": {
|
|
||||||
"field": "network.type",
|
|
||||||
"value": "ipv4",
|
|
||||||
"if": "ctx.source?.ip != null && ctx.source.ip.contains(\".\")"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"geoip": {
|
|
||||||
"field": "source.ip",
|
|
||||||
"target_field": "source.geo",
|
|
||||||
"ignore_missing": true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"geoip": {
|
|
||||||
"field": "destination.ip",
|
|
||||||
"target_field": "destination.geo",
|
|
||||||
"ignore_missing": true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"geoip": {
|
|
||||||
"ignore_missing": true,
|
|
||||||
"database_file": "GeoLite2-ASN.mmdb",
|
|
||||||
"field": "source.ip",
|
|
||||||
"target_field": "source.as",
|
|
||||||
"properties": [
|
|
||||||
"asn",
|
|
||||||
"organization_name"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"geoip": {
|
|
||||||
"database_file": "GeoLite2-ASN.mmdb",
|
|
||||||
"field": "destination.ip",
|
|
||||||
"target_field": "destination.as",
|
|
||||||
"properties": [
|
|
||||||
"asn",
|
|
||||||
"organization_name"
|
|
||||||
],
|
|
||||||
"ignore_missing": true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rename": {
|
|
||||||
"field": "source.as.asn",
|
|
||||||
"target_field": "source.as.number",
|
|
||||||
"ignore_missing": true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rename": {
|
|
||||||
"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
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"community_id": {
|
|
||||||
"target_field": "network.community_id",
|
|
||||||
"ignore_failure": true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"grok": {
|
|
||||||
"field": "observer.ingress.interface.name",
|
|
||||||
"patterns": [
|
|
||||||
"%{DATA}.%{NONNEGINT:observer.ingress.vlan.id}"
|
|
||||||
],
|
|
||||||
"ignore_missing": true,
|
|
||||||
"ignore_failure": true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"set": {
|
|
||||||
"field": "network.vlan.id",
|
|
||||||
"copy_from": "observer.ingress.vlan.id",
|
|
||||||
"ignore_empty_value": true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"append": {
|
|
||||||
"field": "related.ip",
|
|
||||||
"value": "{{destination.ip}}",
|
|
||||||
"allow_duplicates": false,
|
|
||||||
"if": "ctx.destination?.ip != null"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"append": {
|
|
||||||
"field": "related.ip",
|
|
||||||
"value": "{{source.ip}}",
|
|
||||||
"allow_duplicates": false,
|
|
||||||
"if": "ctx.source?.ip != null"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"append": {
|
|
||||||
"field": "related.ip",
|
|
||||||
"value": "{{source.nat.ip}}",
|
|
||||||
"allow_duplicates": false,
|
|
||||||
"if": "ctx.source?.nat?.ip != null"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"append": {
|
|
||||||
"field": "related.hosts",
|
|
||||||
"value": "{{destination.domain}}",
|
|
||||||
"if": "ctx.destination?.domain != null"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"append": {
|
|
||||||
"field": "related.user",
|
|
||||||
"value": "{{user.name}}",
|
|
||||||
"if": "ctx.user?.name != null"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"set": {
|
|
||||||
"field": "network.direction",
|
|
||||||
"value": "{{network.direction}}bound",
|
|
||||||
"if": "ctx.network?.direction != null && ctx.network?.direction =~ /^(in|out)$/"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"remove": {
|
|
||||||
"field": [
|
|
||||||
"_tmp"
|
|
||||||
],
|
|
||||||
"ignore_failure": true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"script": {
|
|
||||||
"lang": "painless",
|
|
||||||
"description": "This script processor iterates over the whole document to remove fields with null values.",
|
|
||||||
"source": "void handleMap(Map map) {\n for (def x : map.values()) {\n if (x instanceof Map) {\n handleMap(x);\n } else if (x instanceof List) {\n handleList(x);\n }\n }\n map.values().removeIf(v -> v == null || (v instanceof String && v == \"-\"));\n}\nvoid handleList(List list) {\n for (def x : list) {\n if (x instanceof Map) {\n handleMap(x);\n } else if (x instanceof List) {\n handleList(x);\n }\n }\n}\nhandleMap(ctx);\n"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"remove": {
|
|
||||||
"field": "event.original",
|
|
||||||
"if": "ctx.tags == null || !(ctx.tags.contains('preserve_original_event'))",
|
|
||||||
"ignore_failure": true,
|
|
||||||
"ignore_missing": true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"pipeline": {
|
|
||||||
"name": "logs-pfsense.log@custom",
|
|
||||||
"ignore_missing_pipeline": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"on_failure": [
|
|
||||||
{
|
|
||||||
"remove": {
|
|
||||||
"field": [
|
|
||||||
"_tmp"
|
|
||||||
],
|
|
||||||
"ignore_failure": true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"set": {
|
|
||||||
"field": "event.kind",
|
|
||||||
"value": "pipeline_error"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"append": {
|
|
||||||
"field": "error.message",
|
|
||||||
"value": "{{{ _ingest.on_failure_message }}}"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"_meta": {
|
|
||||||
"managed_by": "fleet",
|
|
||||||
"managed": true,
|
|
||||||
"package": {
|
|
||||||
"name": "pfsense"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -36,7 +36,7 @@
|
|||||||
{
|
{
|
||||||
"set": {
|
"set": {
|
||||||
"field": "event.timezone",
|
"field": "event.timezone",
|
||||||
"value": "{{_tmp.tz_offset}}",
|
"value": "{{{_tmp.tz_offset}}}",
|
||||||
"if": "ctx._tmp?.tz_offset != null && ctx._tmp?.tz_offset != 'local'"
|
"if": "ctx._tmp?.tz_offset != null && ctx._tmp?.tz_offset != 'local'"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -83,7 +83,7 @@
|
|||||||
"MMM d HH:mm:ss",
|
"MMM d HH:mm:ss",
|
||||||
"MMM dd HH:mm:ss"
|
"MMM dd HH:mm:ss"
|
||||||
],
|
],
|
||||||
"timezone": "{{ event.timezone }}"
|
"timezone": "{{{ event.timezone }}}"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -100,61 +100,67 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"pipeline": {
|
"pipeline": {
|
||||||
"name": "logs-pfsense.log-1.19.1-firewall",
|
"name": "logs-pfsense.log-1.20.2-firewall",
|
||||||
"if": "ctx.event.provider == 'filterlog'"
|
"if": "ctx.event.provider == 'filterlog'"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"pipeline": {
|
"pipeline": {
|
||||||
"name": "logs-pfsense.log-1.19.1-openvpn",
|
"name": "logs-pfsense.log-1.20.2-openvpn",
|
||||||
"if": "ctx.event.provider == 'openvpn'"
|
"if": "ctx.event.provider == 'openvpn'"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"pipeline": {
|
"pipeline": {
|
||||||
"name": "logs-pfsense.log-1.19.1-ipsec",
|
"name": "logs-pfsense.log-1.20.2-ipsec",
|
||||||
"if": "ctx.event.provider == 'charon'"
|
"if": "ctx.event.provider == 'charon'"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"pipeline": {
|
"pipeline": {
|
||||||
"name": "logs-pfsense.log-1.19.1-dhcp",
|
"name": "logs-pfsense.log-1.20.2-dhcp",
|
||||||
"if": "[\"dhcpd\", \"dhclient\", \"dhcp6c\"].contains(ctx.event.provider)"
|
"if": "[\"dhcpd\", \"dhclient\", \"dhcp6c\"].contains(ctx.event.provider)"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"pipeline": {
|
"pipeline": {
|
||||||
"name": "logs-pfsense.log-1.19.1-unbound",
|
"name": "logs-pfsense.log-1.20.2-unbound",
|
||||||
"if": "ctx.event.provider == 'unbound'"
|
"if": "ctx.event.provider == 'unbound'"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"pipeline": {
|
"pipeline": {
|
||||||
"name": "logs-pfsense.log-1.19.1-haproxy",
|
"name": "logs-pfsense.log-1.20.2-haproxy",
|
||||||
"if": "ctx.event.provider == 'haproxy'"
|
"if": "ctx.event.provider == 'haproxy'"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"pipeline": {
|
"pipeline": {
|
||||||
"name": "logs-pfsense.log-1.19.1-php-fpm",
|
"name": "logs-pfsense.log-1.20.2-php-fpm",
|
||||||
"if": "ctx.event.provider == 'php-fpm'"
|
"if": "ctx.event.provider == 'php-fpm'"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"pipeline": {
|
"pipeline": {
|
||||||
"name": "logs-pfsense.log-1.19.1-squid",
|
"name": "logs-pfsense.log-1.20.2-squid",
|
||||||
"if": "ctx.event.provider == 'squid'"
|
"if": "ctx.event.provider == 'squid'"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"pipeline": {
|
||||||
|
"name": "logs-pfsense.log-1.20.2-snort",
|
||||||
|
"if": "ctx.event.provider == 'snort'"
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"pipeline": {
|
"pipeline": {
|
||||||
"name": "logs-pfsense.log-1.16.0-suricata",
|
"name": "logs-pfsense.log-1.20.2-suricata",
|
||||||
"if": "ctx.event.provider == 'suricata'"
|
"if": "ctx.event.provider == 'suricata'"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"drop": {
|
"drop": {
|
||||||
"if": "![\"filterlog\", \"openvpn\", \"charon\", \"dhcpd\", \"dhclient\", \"dhcp6c\", \"unbound\", \"haproxy\", \"php-fpm\", \"squid\", \"suricata\"].contains(ctx.event?.provider)"
|
"if": "![\"filterlog\", \"openvpn\", \"charon\", \"dhcpd\", \"dhclient\", \"dhcp6c\", \"unbound\", \"haproxy\", \"php-fpm\", \"squid\", \"snort\"].contains(ctx.event?.provider)"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -288,7 +294,7 @@
|
|||||||
{
|
{
|
||||||
"append": {
|
"append": {
|
||||||
"field": "related.ip",
|
"field": "related.ip",
|
||||||
"value": "{{destination.ip}}",
|
"value": "{{{destination.ip}}}",
|
||||||
"allow_duplicates": false,
|
"allow_duplicates": false,
|
||||||
"if": "ctx.destination?.ip != null"
|
"if": "ctx.destination?.ip != null"
|
||||||
}
|
}
|
||||||
@@ -296,7 +302,7 @@
|
|||||||
{
|
{
|
||||||
"append": {
|
"append": {
|
||||||
"field": "related.ip",
|
"field": "related.ip",
|
||||||
"value": "{{source.ip}}",
|
"value": "{{{source.ip}}}",
|
||||||
"allow_duplicates": false,
|
"allow_duplicates": false,
|
||||||
"if": "ctx.source?.ip != null"
|
"if": "ctx.source?.ip != null"
|
||||||
}
|
}
|
||||||
@@ -304,7 +310,7 @@
|
|||||||
{
|
{
|
||||||
"append": {
|
"append": {
|
||||||
"field": "related.ip",
|
"field": "related.ip",
|
||||||
"value": "{{source.nat.ip}}",
|
"value": "{{{source.nat.ip}}}",
|
||||||
"allow_duplicates": false,
|
"allow_duplicates": false,
|
||||||
"if": "ctx.source?.nat?.ip != null"
|
"if": "ctx.source?.nat?.ip != null"
|
||||||
}
|
}
|
||||||
@@ -312,21 +318,21 @@
|
|||||||
{
|
{
|
||||||
"append": {
|
"append": {
|
||||||
"field": "related.hosts",
|
"field": "related.hosts",
|
||||||
"value": "{{destination.domain}}",
|
"value": "{{{destination.domain}}}",
|
||||||
"if": "ctx.destination?.domain != null"
|
"if": "ctx.destination?.domain != null"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"append": {
|
"append": {
|
||||||
"field": "related.user",
|
"field": "related.user",
|
||||||
"value": "{{user.name}}",
|
"value": "{{{user.name}}}",
|
||||||
"if": "ctx.user?.name != null"
|
"if": "ctx.user?.name != null"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"set": {
|
"set": {
|
||||||
"field": "network.direction",
|
"field": "network.direction",
|
||||||
"value": "{{network.direction}}bound",
|
"value": "{{{network.direction}}}bound",
|
||||||
"if": "ctx.network?.direction != null && ctx.network?.direction =~ /^(in|out)$/"
|
"if": "ctx.network?.direction != null && ctx.network?.direction =~ /^(in|out)$/"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -403,12 +409,5 @@
|
|||||||
"value": "{{{ _ingest.on_failure_message }}}"
|
"value": "{{{ _ingest.on_failure_message }}}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
]
|
||||||
"_meta": {
|
}
|
||||||
"managed_by": "fleet",
|
|
||||||
"managed": true,
|
|
||||||
"package": {
|
|
||||||
"name": "pfsense"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,383 +0,0 @@
|
|||||||
{
|
|
||||||
"template": {
|
|
||||||
"settings": {
|
|
||||||
"index": {
|
|
||||||
"lifecycle": {
|
|
||||||
"name": "logs"
|
|
||||||
},
|
|
||||||
"codec": "best_compression",
|
|
||||||
"default_pipeline": "logs-elastic_agent-1.20.0",
|
|
||||||
"mapping": {
|
|
||||||
"total_fields": {
|
|
||||||
"limit": "10000"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"query": {
|
|
||||||
"default_field": [
|
|
||||||
"cloud.account.id",
|
|
||||||
"cloud.availability_zone",
|
|
||||||
"cloud.instance.id",
|
|
||||||
"cloud.instance.name",
|
|
||||||
"cloud.machine.type",
|
|
||||||
"cloud.provider",
|
|
||||||
"cloud.region",
|
|
||||||
"cloud.project.id",
|
|
||||||
"cloud.image.id",
|
|
||||||
"container.id",
|
|
||||||
"container.image.name",
|
|
||||||
"container.name",
|
|
||||||
"host.architecture",
|
|
||||||
"host.hostname",
|
|
||||||
"host.id",
|
|
||||||
"host.mac",
|
|
||||||
"host.name",
|
|
||||||
"host.os.family",
|
|
||||||
"host.os.kernel",
|
|
||||||
"host.os.name",
|
|
||||||
"host.os.platform",
|
|
||||||
"host.os.version",
|
|
||||||
"host.os.build",
|
|
||||||
"host.os.codename",
|
|
||||||
"host.type",
|
|
||||||
"ecs.version",
|
|
||||||
"agent.build.original",
|
|
||||||
"agent.ephemeral_id",
|
|
||||||
"agent.id",
|
|
||||||
"agent.name",
|
|
||||||
"agent.type",
|
|
||||||
"agent.version",
|
|
||||||
"log.level",
|
|
||||||
"message",
|
|
||||||
"elastic_agent.id",
|
|
||||||
"elastic_agent.process",
|
|
||||||
"elastic_agent.version",
|
|
||||||
"component.id",
|
|
||||||
"component.type",
|
|
||||||
"component.binary",
|
|
||||||
"component.state",
|
|
||||||
"component.old_state",
|
|
||||||
"unit.id",
|
|
||||||
"unit.type",
|
|
||||||
"unit.state",
|
|
||||||
"unit.old_state"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"mappings": {
|
|
||||||
"dynamic": false,
|
|
||||||
"dynamic_templates": [
|
|
||||||
{
|
|
||||||
"container.labels": {
|
|
||||||
"path_match": "container.labels.*",
|
|
||||||
"mapping": {
|
|
||||||
"type": "keyword"
|
|
||||||
},
|
|
||||||
"match_mapping_type": "string"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"properties": {
|
|
||||||
"container": {
|
|
||||||
"properties": {
|
|
||||||
"image": {
|
|
||||||
"properties": {
|
|
||||||
"name": {
|
|
||||||
"ignore_above": 1024,
|
|
||||||
"type": "keyword"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"name": {
|
|
||||||
"ignore_above": 1024,
|
|
||||||
"type": "keyword"
|
|
||||||
},
|
|
||||||
"id": {
|
|
||||||
"ignore_above": 1024,
|
|
||||||
"type": "keyword"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"agent": {
|
|
||||||
"properties": {
|
|
||||||
"build": {
|
|
||||||
"properties": {
|
|
||||||
"original": {
|
|
||||||
"ignore_above": 1024,
|
|
||||||
"type": "keyword"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"name": {
|
|
||||||
"ignore_above": 1024,
|
|
||||||
"type": "keyword"
|
|
||||||
},
|
|
||||||
"id": {
|
|
||||||
"ignore_above": 1024,
|
|
||||||
"type": "keyword"
|
|
||||||
},
|
|
||||||
"ephemeral_id": {
|
|
||||||
"ignore_above": 1024,
|
|
||||||
"type": "keyword"
|
|
||||||
},
|
|
||||||
"type": {
|
|
||||||
"ignore_above": 1024,
|
|
||||||
"type": "keyword"
|
|
||||||
},
|
|
||||||
"version": {
|
|
||||||
"ignore_above": 1024,
|
|
||||||
"type": "keyword"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"log": {
|
|
||||||
"properties": {
|
|
||||||
"level": {
|
|
||||||
"ignore_above": 1024,
|
|
||||||
"type": "keyword"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"elastic_agent": {
|
|
||||||
"properties": {
|
|
||||||
"process": {
|
|
||||||
"ignore_above": 1024,
|
|
||||||
"type": "keyword"
|
|
||||||
},
|
|
||||||
"id": {
|
|
||||||
"ignore_above": 1024,
|
|
||||||
"type": "keyword"
|
|
||||||
},
|
|
||||||
"version": {
|
|
||||||
"ignore_above": 1024,
|
|
||||||
"type": "keyword"
|
|
||||||
},
|
|
||||||
"snapshot": {
|
|
||||||
"type": "boolean"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"message": {
|
|
||||||
"type": "text"
|
|
||||||
},
|
|
||||||
"cloud": {
|
|
||||||
"properties": {
|
|
||||||
"availability_zone": {
|
|
||||||
"ignore_above": 1024,
|
|
||||||
"type": "keyword"
|
|
||||||
},
|
|
||||||
"image": {
|
|
||||||
"properties": {
|
|
||||||
"id": {
|
|
||||||
"ignore_above": 1024,
|
|
||||||
"type": "keyword"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"instance": {
|
|
||||||
"properties": {
|
|
||||||
"name": {
|
|
||||||
"ignore_above": 1024,
|
|
||||||
"type": "keyword"
|
|
||||||
},
|
|
||||||
"id": {
|
|
||||||
"ignore_above": 1024,
|
|
||||||
"type": "keyword"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"provider": {
|
|
||||||
"ignore_above": 1024,
|
|
||||||
"type": "keyword"
|
|
||||||
},
|
|
||||||
"machine": {
|
|
||||||
"properties": {
|
|
||||||
"type": {
|
|
||||||
"ignore_above": 1024,
|
|
||||||
"type": "keyword"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"project": {
|
|
||||||
"properties": {
|
|
||||||
"id": {
|
|
||||||
"ignore_above": 1024,
|
|
||||||
"type": "keyword"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"region": {
|
|
||||||
"ignore_above": 1024,
|
|
||||||
"type": "keyword"
|
|
||||||
},
|
|
||||||
"account": {
|
|
||||||
"properties": {
|
|
||||||
"id": {
|
|
||||||
"ignore_above": 1024,
|
|
||||||
"type": "keyword"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"component": {
|
|
||||||
"properties": {
|
|
||||||
"binary": {
|
|
||||||
"ignore_above": 1024,
|
|
||||||
"type": "keyword"
|
|
||||||
},
|
|
||||||
"old_state": {
|
|
||||||
"ignore_above": 1024,
|
|
||||||
"type": "keyword"
|
|
||||||
},
|
|
||||||
"id": {
|
|
||||||
"ignore_above": 1024,
|
|
||||||
"type": "wildcard"
|
|
||||||
},
|
|
||||||
"state": {
|
|
||||||
"ignore_above": 1024,
|
|
||||||
"type": "keyword"
|
|
||||||
},
|
|
||||||
"type": {
|
|
||||||
"ignore_above": 1024,
|
|
||||||
"type": "keyword"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"unit": {
|
|
||||||
"properties": {
|
|
||||||
"old_state": {
|
|
||||||
"ignore_above": 1024,
|
|
||||||
"type": "keyword"
|
|
||||||
},
|
|
||||||
"id": {
|
|
||||||
"ignore_above": 1024,
|
|
||||||
"type": "wildcard"
|
|
||||||
},
|
|
||||||
"state": {
|
|
||||||
"ignore_above": 1024,
|
|
||||||
"type": "keyword"
|
|
||||||
},
|
|
||||||
"type": {
|
|
||||||
"ignore_above": 1024,
|
|
||||||
"type": "keyword"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"@timestamp": {
|
|
||||||
"type": "date"
|
|
||||||
},
|
|
||||||
"ecs": {
|
|
||||||
"properties": {
|
|
||||||
"version": {
|
|
||||||
"ignore_above": 1024,
|
|
||||||
"type": "keyword"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"data_stream": {
|
|
||||||
"properties": {
|
|
||||||
"namespace": {
|
|
||||||
"type": "constant_keyword"
|
|
||||||
},
|
|
||||||
"type": {
|
|
||||||
"type": "constant_keyword"
|
|
||||||
},
|
|
||||||
"dataset": {
|
|
||||||
"type": "constant_keyword"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"host": {
|
|
||||||
"properties": {
|
|
||||||
"hostname": {
|
|
||||||
"ignore_above": 1024,
|
|
||||||
"type": "keyword"
|
|
||||||
},
|
|
||||||
"os": {
|
|
||||||
"properties": {
|
|
||||||
"build": {
|
|
||||||
"ignore_above": 1024,
|
|
||||||
"type": "keyword"
|
|
||||||
},
|
|
||||||
"kernel": {
|
|
||||||
"ignore_above": 1024,
|
|
||||||
"type": "keyword"
|
|
||||||
},
|
|
||||||
"codename": {
|
|
||||||
"ignore_above": 1024,
|
|
||||||
"type": "keyword"
|
|
||||||
},
|
|
||||||
"name": {
|
|
||||||
"ignore_above": 1024,
|
|
||||||
"type": "keyword",
|
|
||||||
"fields": {
|
|
||||||
"text": {
|
|
||||||
"type": "text"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"family": {
|
|
||||||
"ignore_above": 1024,
|
|
||||||
"type": "keyword"
|
|
||||||
},
|
|
||||||
"version": {
|
|
||||||
"ignore_above": 1024,
|
|
||||||
"type": "keyword"
|
|
||||||
},
|
|
||||||
"platform": {
|
|
||||||
"ignore_above": 1024,
|
|
||||||
"type": "keyword"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"domain": {
|
|
||||||
"ignore_above": 1024,
|
|
||||||
"type": "keyword"
|
|
||||||
},
|
|
||||||
"ip": {
|
|
||||||
"type": "ip"
|
|
||||||
},
|
|
||||||
"containerized": {
|
|
||||||
"type": "boolean"
|
|
||||||
},
|
|
||||||
"name": {
|
|
||||||
"ignore_above": 1024,
|
|
||||||
"type": "keyword"
|
|
||||||
},
|
|
||||||
"id": {
|
|
||||||
"ignore_above": 1024,
|
|
||||||
"type": "keyword"
|
|
||||||
},
|
|
||||||
"type": {
|
|
||||||
"ignore_above": 1024,
|
|
||||||
"type": "keyword"
|
|
||||||
},
|
|
||||||
"mac": {
|
|
||||||
"ignore_above": 1024,
|
|
||||||
"type": "keyword"
|
|
||||||
},
|
|
||||||
"architecture": {
|
|
||||||
"ignore_above": 1024,
|
|
||||||
"type": "keyword"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"event": {
|
|
||||||
"properties": {
|
|
||||||
"dataset": {
|
|
||||||
"type": "constant_keyword"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"_meta": {
|
|
||||||
"package": {
|
|
||||||
"name": "elastic_agent"
|
|
||||||
},
|
|
||||||
"managed_by": "fleet",
|
|
||||||
"managed": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,132 +0,0 @@
|
|||||||
{
|
|
||||||
"template": {
|
|
||||||
"settings": {
|
|
||||||
"index": {
|
|
||||||
"lifecycle": {
|
|
||||||
"name": "logs-endpoint.collection-diagnostic"
|
|
||||||
},
|
|
||||||
"codec": "best_compression",
|
|
||||||
"default_pipeline": "logs-endpoint.diagnostic.collection-8.10.2",
|
|
||||||
"mapping": {
|
|
||||||
"total_fields": {
|
|
||||||
"limit": "10000"
|
|
||||||
},
|
|
||||||
"ignore_malformed": "true"
|
|
||||||
},
|
|
||||||
"query": {
|
|
||||||
"default_field": [
|
|
||||||
"ecs.version",
|
|
||||||
"event.action",
|
|
||||||
"event.category",
|
|
||||||
"event.code",
|
|
||||||
"event.dataset",
|
|
||||||
"event.hash",
|
|
||||||
"event.id",
|
|
||||||
"event.kind",
|
|
||||||
"event.module",
|
|
||||||
"event.outcome",
|
|
||||||
"event.provider",
|
|
||||||
"event.type"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"mappings": {
|
|
||||||
"dynamic": false,
|
|
||||||
"properties": {
|
|
||||||
"@timestamp": {
|
|
||||||
"ignore_malformed": false,
|
|
||||||
"type": "date"
|
|
||||||
},
|
|
||||||
"ecs": {
|
|
||||||
"properties": {
|
|
||||||
"version": {
|
|
||||||
"ignore_above": 1024,
|
|
||||||
"type": "keyword"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"data_stream": {
|
|
||||||
"properties": {
|
|
||||||
"namespace": {
|
|
||||||
"type": "constant_keyword"
|
|
||||||
},
|
|
||||||
"type": {
|
|
||||||
"type": "constant_keyword"
|
|
||||||
},
|
|
||||||
"dataset": {
|
|
||||||
"type": "constant_keyword"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"event": {
|
|
||||||
"properties": {
|
|
||||||
"severity": {
|
|
||||||
"type": "long"
|
|
||||||
},
|
|
||||||
"code": {
|
|
||||||
"ignore_above": 1024,
|
|
||||||
"type": "keyword"
|
|
||||||
},
|
|
||||||
"created": {
|
|
||||||
"type": "date"
|
|
||||||
},
|
|
||||||
"kind": {
|
|
||||||
"ignore_above": 1024,
|
|
||||||
"type": "keyword"
|
|
||||||
},
|
|
||||||
"module": {
|
|
||||||
"ignore_above": 1024,
|
|
||||||
"type": "keyword"
|
|
||||||
},
|
|
||||||
"type": {
|
|
||||||
"ignore_above": 1024,
|
|
||||||
"type": "keyword"
|
|
||||||
},
|
|
||||||
"sequence": {
|
|
||||||
"type": "long"
|
|
||||||
},
|
|
||||||
"ingested": {
|
|
||||||
"type": "date"
|
|
||||||
},
|
|
||||||
"provider": {
|
|
||||||
"ignore_above": 1024,
|
|
||||||
"type": "keyword"
|
|
||||||
},
|
|
||||||
"action": {
|
|
||||||
"ignore_above": 1024,
|
|
||||||
"type": "keyword"
|
|
||||||
},
|
|
||||||
"id": {
|
|
||||||
"ignore_above": 1024,
|
|
||||||
"type": "keyword"
|
|
||||||
},
|
|
||||||
"category": {
|
|
||||||
"ignore_above": 1024,
|
|
||||||
"type": "keyword"
|
|
||||||
},
|
|
||||||
"dataset": {
|
|
||||||
"ignore_above": 1024,
|
|
||||||
"type": "keyword"
|
|
||||||
},
|
|
||||||
"hash": {
|
|
||||||
"ignore_above": 1024,
|
|
||||||
"type": "keyword"
|
|
||||||
},
|
|
||||||
"outcome": {
|
|
||||||
"ignore_above": 1024,
|
|
||||||
"type": "keyword"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"_meta": {
|
|
||||||
"package": {
|
|
||||||
"name": "endpoint"
|
|
||||||
},
|
|
||||||
"managed_by": "fleet",
|
|
||||||
"managed": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,201 +0,0 @@
|
|||||||
{
|
|
||||||
"template": {
|
|
||||||
"settings": {
|
|
||||||
"index": {
|
|
||||||
"lifecycle": {
|
|
||||||
"name": "metrics"
|
|
||||||
},
|
|
||||||
"default_pipeline": "metrics-fleet_server.agent_status-1.5.0",
|
|
||||||
"mapping": {
|
|
||||||
"total_fields": {
|
|
||||||
"limit": "1000"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"mappings": {
|
|
||||||
"dynamic": false,
|
|
||||||
"_source": {
|
|
||||||
"mode": "synthetic"
|
|
||||||
},
|
|
||||||
"properties": {
|
|
||||||
"cluster": {
|
|
||||||
"properties": {
|
|
||||||
"id": {
|
|
||||||
"time_series_dimension": true,
|
|
||||||
"type": "keyword"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"fleet": {
|
|
||||||
"properties": {
|
|
||||||
"agents": {
|
|
||||||
"properties": {
|
|
||||||
"offline": {
|
|
||||||
"time_series_metric": "gauge",
|
|
||||||
"meta": {},
|
|
||||||
"type": "long"
|
|
||||||
},
|
|
||||||
"total": {
|
|
||||||
"time_series_metric": "gauge",
|
|
||||||
"meta": {},
|
|
||||||
"type": "long"
|
|
||||||
},
|
|
||||||
"updating": {
|
|
||||||
"time_series_metric": "gauge",
|
|
||||||
"meta": {},
|
|
||||||
"type": "long"
|
|
||||||
},
|
|
||||||
"inactive": {
|
|
||||||
"time_series_metric": "gauge",
|
|
||||||
"meta": {},
|
|
||||||
"type": "long"
|
|
||||||
},
|
|
||||||
"healthy": {
|
|
||||||
"time_series_metric": "gauge",
|
|
||||||
"meta": {},
|
|
||||||
"type": "long"
|
|
||||||
},
|
|
||||||
"unhealthy": {
|
|
||||||
"time_series_metric": "gauge",
|
|
||||||
"meta": {},
|
|
||||||
"type": "long"
|
|
||||||
},
|
|
||||||
"unenrolled": {
|
|
||||||
"time_series_metric": "gauge",
|
|
||||||
"meta": {},
|
|
||||||
"type": "long"
|
|
||||||
},
|
|
||||||
"enrolled": {
|
|
||||||
"time_series_metric": "gauge",
|
|
||||||
"meta": {},
|
|
||||||
"type": "long"
|
|
||||||
},
|
|
||||||
"unhealthy_reason": {
|
|
||||||
"properties": {
|
|
||||||
"output": {
|
|
||||||
"time_series_metric": "gauge",
|
|
||||||
"meta": {},
|
|
||||||
"type": "long"
|
|
||||||
},
|
|
||||||
"input": {
|
|
||||||
"time_series_metric": "gauge",
|
|
||||||
"meta": {},
|
|
||||||
"type": "long"
|
|
||||||
},
|
|
||||||
"other": {
|
|
||||||
"time_series_metric": "gauge",
|
|
||||||
"meta": {},
|
|
||||||
"type": "long"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"upgrading_step": {
|
|
||||||
"properties": {
|
|
||||||
"rollback": {
|
|
||||||
"time_series_metric": "gauge",
|
|
||||||
"meta": {},
|
|
||||||
"type": "long"
|
|
||||||
},
|
|
||||||
"requested": {
|
|
||||||
"time_series_metric": "gauge",
|
|
||||||
"meta": {},
|
|
||||||
"type": "long"
|
|
||||||
},
|
|
||||||
"restarting": {
|
|
||||||
"time_series_metric": "gauge",
|
|
||||||
"meta": {},
|
|
||||||
"type": "long"
|
|
||||||
},
|
|
||||||
"downloading": {
|
|
||||||
"time_series_metric": "gauge",
|
|
||||||
"meta": {},
|
|
||||||
"type": "long"
|
|
||||||
},
|
|
||||||
"scheduled": {
|
|
||||||
"time_series_metric": "gauge",
|
|
||||||
"meta": {},
|
|
||||||
"type": "long"
|
|
||||||
},
|
|
||||||
"extracting": {
|
|
||||||
"time_series_metric": "gauge",
|
|
||||||
"meta": {},
|
|
||||||
"type": "long"
|
|
||||||
},
|
|
||||||
"replacing": {
|
|
||||||
"time_series_metric": "gauge",
|
|
||||||
"meta": {},
|
|
||||||
"type": "long"
|
|
||||||
},
|
|
||||||
"failed": {
|
|
||||||
"time_series_metric": "gauge",
|
|
||||||
"meta": {},
|
|
||||||
"type": "long"
|
|
||||||
},
|
|
||||||
"watching": {
|
|
||||||
"time_series_metric": "gauge",
|
|
||||||
"meta": {},
|
|
||||||
"type": "long"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"agent": {
|
|
||||||
"properties": {
|
|
||||||
"id": {
|
|
||||||
"ignore_above": 1024,
|
|
||||||
"type": "keyword"
|
|
||||||
},
|
|
||||||
"type": {
|
|
||||||
"ignore_above": 1024,
|
|
||||||
"type": "keyword"
|
|
||||||
},
|
|
||||||
"version": {
|
|
||||||
"ignore_above": 1024,
|
|
||||||
"type": "keyword"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"@timestamp": {
|
|
||||||
"ignore_malformed": false,
|
|
||||||
"type": "date"
|
|
||||||
},
|
|
||||||
"data_stream": {
|
|
||||||
"properties": {
|
|
||||||
"namespace": {
|
|
||||||
"type": "constant_keyword"
|
|
||||||
},
|
|
||||||
"type": {
|
|
||||||
"type": "constant_keyword"
|
|
||||||
},
|
|
||||||
"dataset": {
|
|
||||||
"type": "constant_keyword"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"kibana": {
|
|
||||||
"properties": {
|
|
||||||
"uuid": {
|
|
||||||
"path": "agent.id",
|
|
||||||
"type": "alias"
|
|
||||||
},
|
|
||||||
"version": {
|
|
||||||
"path": "agent.version",
|
|
||||||
"type": "alias"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"_meta": {
|
|
||||||
"package": {
|
|
||||||
"name": "fleet_server"
|
|
||||||
},
|
|
||||||
"managed_by": "fleet",
|
|
||||||
"managed": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,102 +0,0 @@
|
|||||||
{
|
|
||||||
"template": {
|
|
||||||
"settings": {
|
|
||||||
"index": {
|
|
||||||
"lifecycle": {
|
|
||||||
"name": "metrics"
|
|
||||||
},
|
|
||||||
"default_pipeline": "metrics-fleet_server.agent_versions-1.5.0",
|
|
||||||
"mapping": {
|
|
||||||
"total_fields": {
|
|
||||||
"limit": "1000"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"mappings": {
|
|
||||||
"dynamic": false,
|
|
||||||
"_source": {
|
|
||||||
"mode": "synthetic"
|
|
||||||
},
|
|
||||||
"properties": {
|
|
||||||
"cluster": {
|
|
||||||
"properties": {
|
|
||||||
"id": {
|
|
||||||
"time_series_dimension": true,
|
|
||||||
"type": "keyword"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"fleet": {
|
|
||||||
"properties": {
|
|
||||||
"agent": {
|
|
||||||
"properties": {
|
|
||||||
"count": {
|
|
||||||
"time_series_metric": "gauge",
|
|
||||||
"meta": {},
|
|
||||||
"type": "long"
|
|
||||||
},
|
|
||||||
"version": {
|
|
||||||
"time_series_dimension": true,
|
|
||||||
"type": "keyword"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"agent": {
|
|
||||||
"properties": {
|
|
||||||
"id": {
|
|
||||||
"ignore_above": 1024,
|
|
||||||
"type": "keyword"
|
|
||||||
},
|
|
||||||
"type": {
|
|
||||||
"ignore_above": 1024,
|
|
||||||
"type": "keyword"
|
|
||||||
},
|
|
||||||
"version": {
|
|
||||||
"ignore_above": 1024,
|
|
||||||
"type": "keyword"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"@timestamp": {
|
|
||||||
"ignore_malformed": false,
|
|
||||||
"type": "date"
|
|
||||||
},
|
|
||||||
"data_stream": {
|
|
||||||
"properties": {
|
|
||||||
"namespace": {
|
|
||||||
"type": "constant_keyword"
|
|
||||||
},
|
|
||||||
"type": {
|
|
||||||
"type": "constant_keyword"
|
|
||||||
},
|
|
||||||
"dataset": {
|
|
||||||
"type": "constant_keyword"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"kibana": {
|
|
||||||
"properties": {
|
|
||||||
"uuid": {
|
|
||||||
"path": "agent.id",
|
|
||||||
"type": "alias"
|
|
||||||
},
|
|
||||||
"version": {
|
|
||||||
"path": "agent.version",
|
|
||||||
"type": "alias"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"_meta": {
|
|
||||||
"package": {
|
|
||||||
"name": "fleet_server"
|
|
||||||
},
|
|
||||||
"managed_by": "fleet",
|
|
||||||
"managed": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user