set it up like below
wget https://artifacts.elastic.co/downloads/logstash/logstash-6.6.2.deb
sudo dpkg -i logstash-6.6.2.deb
sudo systemctl enable logstash.service
sudo systemctl start logstash.service
and i added a pipeline script like below
input {
file {
path => "/root/dev/Intuseer-PaaS/backend/airound_sv_logs.log"
start_position => "beginning"
}
}
output {
stdout {}
file {
path => "/root/dev/output/output-%{+YYYY-MM-dd}.log"
}
}
the log file likes below
timestamp, server_cpu, server_memory_used, server_memory_free, process_cpu, process_memory
1582787287, 1, 1176, 2759, 0, 9.05
1582787288, 1, 1176, 2759, 1, 8.97
1582787289, 2, 1176, 2759, 0, 9.04
1582787290, 1, 1177, 2758, 0, 8.98
1582787291, 0, 1176, 2759, 1, 9.04
1582787292, 1, 1176, 2759, 0, 8.96
1582787293, 1, 1177, 2758, 0, 9.03
1582787294, 1, 1176, 2759, 1, 9.08
1582787295, 0, 1177, 2758, 0, 9.02
1582787296, 1, 1176, 2759, 1, 9.05
I've tried so many time to get this log on local directory. I checked the status of logstash. but It doesn't have change after below. aslo the output-%.log file wasn't made.
So, in summary, everything was working, but since you didn't see anything in the log you assumed it wasn't working. Adding --debug
confirmed that everything was working properly.
A few notes, though:
sincedb_path
otherwise you run the risk of not being able to reprocess your file repeatedlycsv
filter in order to parse your rows.