I'm using LogStash to import IIS logs into ElasticSearch. It's done by pointing the LogStash to the folder with IIS logs which contains several log files each per day. Currently I don't use the LogStash forwarder (not sure if it change anything).
The problem is that the LogStash waits until the current log is flushed to disk,.which takes many hours. The command "netsh http flush logbuffer" does nothing and there only 2 things to flush logs:
- New day log, which flush previous log
- I manually go to the log folder in Windows Explorer and press F5 (refresh).
So I'm looking for better way if any.