logstash-plugins / logstash-input-beats

Apache License 2.0
86 stars 81 forks source link

Tools: CLI + server #107

Open talevy opened 8 years ago

talevy commented 8 years ago

Since the beats java library is meant to be just that, a library, it would be nice to extract the Runner.java into a separate tools module in the same gradle project. In addition to that extraction, it would be nice to include another tool to help interact with the Runner from the command line. For example a beatscat tool that you can interact with via unix pipes to send events to it, and have it behave like a Server where you can retrieve events from it.

ph commented 8 years ago

Remove the hardcoded path in Runner.

String sslCertificate = "/Users/ph/es/certificates/certificate.crt";
sslKey = "/Users/ph/es/certificates/certificate.pkcs8.key";
noPkcs7SslKey = "/Users/ph/es/certificates/certificate.key";
[] certificateAuthorities = new String[] { "/Users/ph/es/certificates/certificate.crt" };