Hi@akhtar,
You can use the file plugin to connect your log file in Logstash. In your Logstash configuration file, you have to tell your file name. I have attached the configuration code below.
input {
file {
path => '/root/logstash-7.7.1/bin/file.txt'
}
}
output {
file {
path => 'output.txt'
codec => rubydebug
}
}
Hope this will help you.