I have been trying to tune filebeat on an IIS server where it's peaking at 50-65% of the CPU every few seconds. This is on a Windows Server 2016 Datacenter, filebeat is managed by sidecar, feature IIS, with 47 virtual hosts, some having 2000 log files. I am on filebeat version 8.9. Do you have any suggestions with this setup of this many log files, how I can tune filebeat not to use so much processor? There is only one active log file in each virtual host folder being written to at a time. Thank you for any suggestions I may try.
Config:
output.logstash:
hosts: ["10.3.3.3:5044"]
path:
data: ${sidecar.spoolDir!"C:\\Program Files\\Graylog\\sidecar\\cache\\filebeat"}\data
logs: ${sidecar.spoolDir!"C:\\Program Files\\Graylog\\sidecar"}\logs
tags:
- windows
filebeat.inputs:
- type: filestream
id: iis
enabled: true
paths:
- "C:/inetpub/logs/LogFiles/*/*.log"
exclude_lines: ['^#']
#changed default scan frequency to 30s hoping to reduce harvesting, however I still see the filebeat process spiking at 50% every few seconds
scan_frequency: 30s
#was hoping ignore older would prevent filebeat from reading and processing through all the older log files in the virtual host directory
ignore_older: 1h
#configured close inactive to send harvesters for inactive log files
close_inactive: 30m