This topic describes how to create Logstash configurations for log collection and processing.
Plug-ins
- logstash-input-file plug-in
The logstash-input-file plug-in collects logs by using the tail command. For more information, see logstash-input-file.
- logstash-output-logservice plug-in
The logstash-output-logservice plug-in processes the collected logs and uploads the logs to Log Service.
Procedure
What to do next
Use PowerShell to launch the logstash.bat process. The logstash.bat process runs in the frontground. In most cases, the logstash.bat process is performed to test and debug log collection. After debugging, we recommend that you configure Logstash as a Windows service. You can run Logstash in the background and at startup. For more information, see Configure Logstash as a Windows service.