where is rubyUtils.gradle?
I am getting this error when I try to build:
FAILURE: Build failed with an exception.
* Where:
Build file 'PATH_TO_PROJECT_ROOT/my_logstash_plugin/logstash-filter-java_filter_example/build.gradle' line: 5
* What went wrong:
A problem occurred evaluating root project 'logstash-filter-java_filter_example'.
> Could not read script 'PATH_TO_PROJECT_ROOT/my_logstash_plugin/logstash-filter-java_filter_example/logstash-core/rubyUtils.gradle' as it does not exist.
The file seems to be in the logstash repository, but it doesn't exist for the version 6.6 code of logstash that I checked out.
I copied the raw file from the latest version of the logstash repository. It builds OK but I'm not sure if this is the correct solution...
@SolomonShorser-OICR, Java plugins were released as experimental in Logstash 6.6.0 and didn't include the rubyUtils.gradle file at that point. I think that was released as part of the GA version for Java plugin support in Logstash 7.2.0.
So if I'm working with an ELK stack at version 6.6.x, am I better off with Ruby-based plugins?
...or am I better off upgrading to 7.2 (or newer)?
@SolomonShorser-OICR, that's a tough question. You can see how Java plugins progressed from experimental to beta to GA in this issue (https://github.com/elastic/logstash/issues/9215) and there are definitely some important elements that weren't added until beta or later.
I would suggest upgrading Logstash to 7.2.x or later if you can. It should generally work with other stack components that are still at 6.6.x if you're not in a position to upgrade those at the same time.