I have configured and started elastic-search, kibana and logstash. Everything is working without error but I am not able to see my log file in kibana. below is logstash configuration. Can someone please suggest me what I am missing here?
This env is not allowing me to add uri link so I have removed host entry but it is duly configured with localhost and port 9200
input {
file {
path => "C:\input_file.txt" # Replace with the actual path to your log file
start_position => "beginning" # Read from the beginning of the file if needed
sincedb_path => "null" # Optional: Specify a sincedb path
}
}
output {
elasticsearch {
hosts => <local_host:port 9200>
ssl_certificate_authorities => "C:\Users\jyadav\OneDrive - Infinera\Desktop\ELK\elasticsearch-9.0.1\config\certs\http_ca.crt" # Path to the Elasticsearch CA certificate
ssl_verification_mode => full # Optional: Enable hostname verification
user => "elastic"
password => "1us=+kN0b-ZeOlINCa9K"
ssl_enabled => true
index => "my-data-stream"
codec => line
}
stdout {
codec => rubydebug
}
}