我正在尝试从/var/log/wtmp
elasticsearch中读取访问日志
我可以在使用登录框时读取文件last -F /var/log/wtmp
我正在运行 logstash 并将日志发送到 elasticsearch,这里是 logstash conf 文件。
input {
file {
path => "/var/log/wtmp"
start_position => "beginning"
}
}
output {
elasticsearch {
host => localhost
protocol => "http"
port => "9200"
}
}
elasticsearch 中显示的是
G