I have created a logstash, i.e. file.conf, to read through a file in local machine (172.16.1.135).
input{
stdin{}
file{
type => "txt"
path => "C:\Job\Code.txt"
start_position => "beginning"
}
}
filter{
grok{
match => {"message" => ["^job_id:%{GREEDYDATA:job_id}%{SPACE}description:%{GREEDYDATA:description}%{SPACE}result:%{GREEDYDATA:result}"]}
}}
output{
elasticsearch { hosts => ["localhost:9200"] }
stdout { codec => rubydebug }
}
Now I have built a ELK server on another machine (172.16.1.245) and I move the file-input.conf file to the new ELK server.
How can I read back the text from the old machine (172.16.1.135).?
Thanks