Introduction
Revision Historyβ
| Date | Author | Summary |
|---|---|---|
| 18-JUN-2022 | TSgt. Bernadotte | Initial draft |
| 12-DEC-2022 | TSgt. Bernadotte | Reformatted |
| 19-MAR-2026 | CW2 Bernadotte | Converted to markdown; restructured; added module reference and expanded examples |
Purposeβ
The purpose of this aid is to provide operators with the knowledge necessary to configure Filebeat (filebeat.yml) to collect log files from Linux and Windows hosts and forward them to the DIP Logstash pipeline. This includes configuring file path inputs, using Filebeat's built-in modules for common applications, and tuning for CPT-relevant log sources such as Zeek, Suricata, and system/audit logs.
End-Stateβ
- Operators can configure
filebeat.inputsto collect logs from arbitrary file paths on Linux and Windows hosts. - Operators can enable and configure
filebeat.modulesfor common applications (Zeek, Suricata, Apache, system, auditd, etc.). - Operators understand multiline log handling for applications that write multi-line entries.
- Operators can configure the Logstash output to correctly target the DIP External IP.
- Operators can build a complete, mission-ready Filebeat config for the log sources present in a target environment.
Requirementsβ
- Filebeat installed on the target host (Linux or Windows).
- Access to the
filebeat.ymlconfiguration file:- Pre-deployment:
/opt/tfplenum/agent_pkgs/filebeat/templates/filebeat.ymlon the DIP Controller (master config used by TFPlenum agent deployer). - Post-deployment: Modify directly on the deployed host, then restart the Filebeat service.
- Pre-deployment:
- DIP External IP address for output configuration.
- Read access to the log file paths being collected (Filebeat runs as a service β ensure the service account has read permissions on target log directories).
Considerationsβ
- Filebeat vs. Winlogbeat: Winlogbeat is purpose-built for Windows Event Logs (via the Windows API). Filebeat collects flat log files and stdin/network streams. Use Winlogbeat for Windows Event Log channels; use Filebeat for flat log files, application logs, and Linux system logs.
- Tune before deployment when possible. Confirm the log file paths are correct for the target OS distribution and application version before deploying.
- The TFPlenum master config at
/opt/tfplenum/agent_pkgs/filebeat/templates/filebeat.ymlis what gets pushed to hosts. Modifying it affects all future deployments β test on a single host first. - Post-deployment changes require a Filebeat service restart:
systemctl restart filebeat(Linux) orRestart-Service filebeat(Windows). - The 262COS config omits SSL certificate file references intentionally β if the DIP is rebuilt, certificates are regenerated and cert-pinned agents fail to reconnect. Use
ssl.verification_mode: "none"instead. - Do not define the same file path across multiple inputs. Filebeat tracks file state (offset, inode) per input β duplicate path definitions cause unexpected behavior and potential data duplication.
filebeat.inputsvsfilebeat.modules: Modules are pre-configured inputs for common applications with ECS field normalization built in. Prefer modules over raw inputs when a module exists for the application β they produce better-structured data for Kibana.