Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,40 @@ <h3>Follow these instructions to install Filebeat</h3>
<div>
<ol>
<li>Install Filebeat on all servers on which you want to tail logs
(<a target="_blank" href="https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-getting-started.html#filebeat-installation">
(<a target="_blank" href="https://www.elastic.co/guide/en/beats/filebeat/master/filebeat-installation.html">
instructions
</a>)
</li>

<li>
Point Filebeat at the log files you want to tail
(<a target="_blank" href="https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-getting-started.html#filebeat-configuration">
(<a target="_blank" href="https://www.elastic.co/guide/en/beats/filebeat/master/filebeat-configuration.html">
instructions
</a>)
</li>
<li>Configure Filebeat on each server to send data to your Elasticsearch instances
(<a target="_blank" href="https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-configuration-details.html#elasticsearch-output">

<li>
Configure Filebeat to send data through your new Elasticsearch pipeline
(<a target="_blank" href="https://www.elastic.co/guide/en/beats/filebeat/master/elasticsearch-output.html">
instructions
</a>)
</li>
<li>Set the index name in filebeat.yml based on the index pattern you configured in the previous step. The Filebeat
config takes a base index name and automatically rotates the target index by appending "-{date}" to the end, so if
your pattern was "foo-*" you would make the index name "foo" in filebeat.yml.
</a>)<br />
At minimum you'll need to configure Filebeat's Elasticsearch output with a hostname, an index name, and a
<a target="_blank" href="https://www.elastic.co/guide/en/beats/filebeat/master/elasticsearch-output.html#_parameters">
paramaters
</a> block. Your config should end up looking something like this:<br /><br />
<pre>
output:
elasticsearch:
hosts: ["your-elasticsearch-host"]
index: "your-base-index-name"
parameters:
pipeline: "{{installStep.pipelineId}}"</pre>
<em>NOTE</em>: The Filebeat config takes a base index name and automatically rotates the target index by appending "-{date}"
to the end, so if your pattern was "filebeat-*" you would make the index name "filebeat" in filebeat.yml.<br /><br />
</li>

<li>Run Filebeat on each server
(<a target="_blank" href="https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-getting-started.html#_running_filebeat">
(<a target="_blank" href="https://www.elastic.co/guide/en/beats/filebeat/master/_step_5_starting_filebeat.html">
instructions
</a>)
</li>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import modules from 'ui/modules';
import template from 'plugins/kibana/settings/sections/indices/add_data_steps/install_filebeat_step.html';
import { patternToIngest } from '../../../../../common/lib/convert_pattern_and_ingest_name';

modules.get('apps/settings')
.directive('installFilebeatStep', function () {
Expand All @@ -8,8 +9,10 @@ modules.get('apps/settings')
scope: {
results: '='
},
bindToController: true,
controllerAs: 'installStep',
controller: function ($scope) {
var results = $scope.results;
this.pipelineId = patternToIngest(this.results.indexPattern.id);
}
};
});
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Promise from 'bluebird';
import handleESError from '../../../lib/handle_es_error';
import {ingestToPattern, patternToIngest} from '../../../lib/convert_pattern_and_ingest_name';
import {ingestToPattern, patternToIngest} from '../../../../common/lib/convert_pattern_and_ingest_name';

module.exports = function registerDelete(server) {
server.route({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import ingestConfigSchema from '../../../lib/schemas/resources/ingest_config_sch
import handleESError from '../../../lib/handle_es_error';
import createMappingsFromPatternFields from '../../../lib/create_mappings_from_pattern_fields';
import initDefaultFieldProps from '../../../lib/init_default_field_props';
import {ingestToPattern, patternToIngest} from '../../../lib/convert_pattern_and_ingest_name';
import {ingestToPattern, patternToIngest} from '../../../../common/lib/convert_pattern_and_ingest_name';
import { keysToCamelCaseShallow } from '../../../../common/lib/case_conversion';

function patternRollback(rootError, indexPatternId, boundCallWithRequest) {
Expand Down