CLI Beta Features
Introduction
Description
Configuration Files
xdr_package.yaml
xdr_package.yamlglobal_settings:
ingestion_template_s3_bucket: ghostburner-config-bucket
ingestion_pipeline_output_path: ../.xdr_ingestion_pipelines_output
default_target: localhost
target_path: ~/.xdr/xdr_targets.yaml
ip_config_standard_enrichment:
# Paths to standard enrichment files
- name: hypersec-enrichment-ch-array-fields.csv
version: 100.000.000
# Other enrichment configurations...
ip_config_receiver:
# Receiver configuration paths
- name: hypersec-receiver-event-category-map.csv
version: 100.000.000
# Other receiver configurations...
vector_enrichment_maxmind_geoip:
- name: GeoLite2-Country.mmdb
version: 100.000.000
- name: GeoLite2-City.mmdb
version: 100.000.000
- name: GeoLite2-ASN.mmdb
version: 100.000.000
vector_templates:
core:
- name: 000-source-file.yml
version: 100.000.000
- name: 000-source-test-file-with-receiver-emulation.yml
version: 100.000.000
- name: 001-source-kafka-aws-saas.yml
version: 100.000.000
- name: 101-transform-flatten-message.yml
version: 100.000.000
ingestion_pipeline_globals:
ingestion_data_dir: "/vector-data-dir" # This points vector pods where to save the checkpointing and state.
ingestion_mtls_path: "/etc/vector_tls"
kafka_mtls_path: "/etc/vector_mtls"
kafka_brokers: "b-2.ghostburner.ra5n0s.c3.kafka.ap-southeast-2.amazonaws.com:9094,b-3.ghostburner.ra5n0s.c3.kafka.ap-southeast-2.amazonaws.com:9094,b-1.ghostburner.ra5n0s.c3.kafka.ap-southeast-2.amazonaws.com:9094"
ingestion_pipelines:
- name: logs_nxlog_windows
stages:
- name: finalise
description: "Finalization stage for processing Windows NXLog data"
config:
kafka_source_topic: "logs_nxlog_windows"
kafka_source_topic_suffix: "_land"
kafka_sink_topic: "logs_nxlog_windows_load"
kafka_consumer_group: "vector-logs-nxlog-windows-finalize"
container_config:
min_replicas: 1
max_replicas: 9
target_memory_util_percentage: 125
target_CPU_utilization_percentage: 125
persistence_size: 1Gi
config_files:
ip_fields: '/standard_enrichment_files/hypersec-enrichment-ip-fields.csv' #
extract_fields_csv: '/standard_enrichment_files/hypersec-enrichment-extract-fields.csv' #
field_setter_iteration_group: 'finalise' #
steps:
- id: hs-xdr-vector-ct-all-main
type: base
- id: 001-source-kafka-aws-saas
type: source
- id: 101-transform-flatten-message
type: transform
- id: 104-transform-extract-fields
type: transform
- id: 105-transform-junk-filter
type: filter
- id: 115-transform-timestamp-load-field
type: transform
- id: 119-transform-split-ip-field
type: transform
- id: 129-transform-event-hash-field
type: transform
- id: 202-sink-kafka-aws-saas
type: sink
- name: load_ch
description: "ClickHouse loading stage"
config:
kafka_source_topic: "logs_nxlog_windows"
kafka_source_topic_suffix: "_load"
kafka_consumer_group: "vector_logs_nxlog_windows-load-ch-1"
container_config:
min_replicas: 1
max_replicas: 1
target_memory_util_percentage: 125
targetCPUUtilizationPercentage: 125
persistence_size: 1Gi
config_files:
json_fields: '/standard_enrichment_files/hypersec-enrichment-json-fields.csv'
supported_timestamp_format: '["%FT%X%.3fZ", "%FT%X%.6fZ", "%FT%X%.9fZ", "%F %X%.3f", "%F %X%.6f", "%F %X%.9f","%FT%X%.3f", "%FT%X%.6f", "%FT%X%.9f","%FT%XZ","%FT%X","%F %X", "%FT%X"]'
remap_fields: '/standard_enrichment_files/hypersec-enrichment-ch-remap-fields.csv'
steps:
- id: hs-xdr-vector-ct-all-main
type: base
- id: 001-source-kafka-aws-saas
type: source
- id: 101-transform-flatten-message
type: transform
- id: 108-transform-ch-json-remap
type: transform
- id: 102-transform-remap-fields
type: transform
- id: 116-transform-fields-to-camel-case
type: transform
- id: 109-transform-ch-custom-transformations
type: transform
- id: 201-sink-clickhouse-saas
type: sink
- name: load_os
description: "OpenSearch loading stage"
config:
kafka_source_topic: "logs_nxlog_windows"
kafka_source_topic_suffix: "_load"
kafka_consumer_group: "vector-logs-nxlog-windows-load-os-1"
container_config:
min_replicas: 1
max_replicas: 1
target_memory_util_percentage: 125
targetCPUUtilizationPercentage: 125
persistence_size: 1Gi
config_files:
remap_fields: '/standard_enrichment_files/hypersec-enrichment-ch-remap-fields.csv'
opensearch_endpoint: 'https://vpc-ghostburner-vc3t7e5zqeeu4nsa6vrcz6hwfy.ap-southeast-2.es.amazonaws.com'
steps:
- id: hs-xdr-vector-ct-all-main
type: base
- id: 001-source-kafka-aws-saas
type: source
- id: 101-transform-flatten-message
type: transform
- id: 111-transform-os-set-data-stream-fields
type: transform
- id: 102-transform-remap-fields
type: transform
- id: 116-transform-fields-to-camel-case
type: transform
- id: 204-sink-opensearch-aws-saas-stream
type: sink
- name: load_s3
description: "S3 loading stage"
config:
kafka_source_topic: "logs_nxlog_windows_load"
kafka_source_topic_suffix: ""
kafka_consumer_group: "vector-logs-nxlog-windows-load-s3"
container_config:
min_replicas: 1
max_replicas: 1
target_memory_util_percentage: 125
targetCPUUtilizationPercentage: 125
persistence_size: 1Gi
sink_config:
sink_aws_s3_bucket_name.: 'ghostburner-archive'
sink_aws_s3_region: 'ap-southeast-2'
sink_aws_s3_batch_max_bytes: "21474836480"
sink_aws_s3_batch_timeout_secs: "3600"
steps:
- id: hs-xdr-vector-ct-all-main
type: base
- id: 001-source-kafka-aws-saas
type: source
- id: 101-transform-flatten-message
type: transform
- id: 207-sink-aws-s3
type: sinkTarget Configuration Files
xdr_targets.yaml
xdr_targets.yamlTemplates Details:
Global Settings
Setting
Description
Vector Core Configuration
Setting
Description
Vector Enrichment MaxMind GeoIP
Setting
Description
Vector Templates
Setting
Description
Custom Templates
Setting
Description
Ingstion Pipeline CLI Commands
Last updated