Streaming Jenkins logs to Elasticsearch using Logstash

In this recipe, we will show you how to configure the Logstash plugin that you installed on Jenkins previously.

Let's perform the following steps to feed Jenkins logs to Elasticsearch:

  1. In the Manage Jenkins menu, click on the Configure System button.
  2. Scroll through the settings. Under the Logstash settings, check the Enable sending logs to an Indexer checkbox. When this setting is enabled, it will open four new fields.
  1. In the URI field, enter the service name, followed by the indexer name; for example, http://elasticsearch-es-http:9200/logstash/jenkins. Enter your elastic username and password and save the changes:

Now, the Logstash plugin will push the logs to Elasticsearch through the log collector.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.224.30.19