Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

filebeat.inputs:
- type: log
  enabled: true
  paths: /path/to/your/radius_logs
  multiline.pattern: '^[[:space:]]'
  multiline.negate: false
  multiline.match: after
output.logstash:
  hosts: ["WASHOSTNAME-elastic.WASSUFFIX:5044"]
  ssl.certificate_authorities: ["/etc/filebeatssl/certs/ca-certificates.crt"]
processors:
- add_fields:
    target: ''
    fields:
      logtype: radius
- drop_fields:
    fields: ['input', 'host', 'agent', 'acs', 'log', 'ecs']

...

filebeat.inputs:
- type: log
  enabled: true
  paths: /path/to/your/dhcp_logs
  include_lines: ['DHCPACK']
output.logstash:
  hosts: ["WASHOSTNAME-elastic.WASSUFFIX:5044"]
  ssl.certificate_authorities: ["/etc/filebeatssl/certs/ca-certificates.crt"] processors:
- add_fields:
    target: ''
    fields:
      logtype: dhcp
- drop_fields:
    fields: ['input', 'host', 'agent', 'acs', 'log', 'ecs']

...

set +o history
filebeat setup --index-management \
-E output.logstash.enabled=false \
-E 'output.elasticsearch.hosts=["WASHOSTNAME-elastic.WASSUFFIX:443"]' \
-E output.elasticsearch.protocol=https \
-E output.elasticsearch.username=elastic \
-E output.elasticsearch.password=elastic-password-goes-here \
-E 'output.elasticsearch.ssl.certificate_authorities=["/etc/filebeatssl/certs/ca-certificates.crt"]'
set -o history

...