Can I add anything more in my config file so that logstash automatically sends my logs to elasticsearch so I don't have to send them manually every time through command prompt?
Or is there any other way to solve this problem?The point is I don't want to have to add my log files manually everytime,i want to automate this proccess if possible.
You need to use a different input for the data. Have a look at the file input plugin and use this to have Logstash follow and ingest files in the file system.
Have a look at this old blog post. You can set the path parameter to a directory or pattern and have Logstash pick up new files matching this.
If you can provide some more details about the files you are looking to read (format, location and how they are created) it may be easier to help with an example.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.