選擇對應的插件,獲取來源端的數據。
- beat
- file
- syslog
- TCP
- UDP
tcp {
port => 2005
type => nginx
}
file {
path => "/var/log/nginx/lab-host.log"
type => "lab-host"
start_position => "beginning"
}
選擇對應的插件,獲取來源端的數據。
tcp {
port => 2005
type => nginx
}
file {
path => "/var/log/nginx/lab-host.log"
type => "lab-host"
start_position => "beginning"
}