0

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?

udc
  • 17
  • 1
  • 8
  • This may help - [Java Filter for Logstash](https://stackoverflow.com/questions/32370646/java-filter-for-logstash) – Polynomial Proton May 21 '18 at 21:50
  • this seems more like you do with `grok` filter any way. This strategy can work, but can you post an example at what you are trying to achieve? – Sufiyan Ghori May 21 '18 at 22:10
  • This is my sample log file parsing in logstash, input { file { path => "/Users/MINE/Desktop/sample.log" start_position => "beginning" sincedb_path => "/dev/null" } } filter { grok { match => { "message" => "(? – udc May 22 '18 at 09:33

0 Answers0