I am new for logstash and ElasticSearch. I like to know whether is it possible to connect logstash to java.
Here is my question, I have multiple types of log files and I have to parse these different log files. I don't like to write logstash filter for each separate log files and i know, this is not an efficient way. So I decided to create one configuration file. which means before running logstash I will configure which field should be parse. So that, the particular filed only parsed in each line of that log file. so we don't need to write logstash filter separately for different log files. Is this method work? or any other suggestions?