Skip to content

Commit

Permalink
add 'exclude_files' field for filebeat (#63)
Browse files Browse the repository at this point in the history
(cherry picked from commit aefd1ea)
  • Loading branch information
silenceper authored and Marius Sturm committed Sep 28, 2017
1 parent 9ee2bff commit 2c36f73
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/web/collector-configuration/EditInputFields.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ const EditInputFields = React.createClass({
if (!value.hasOwnProperty('paths')) {
this.props.injectProperties('paths', '[\'/var/log/*.log\']');
};
if (!value.hasOwnProperty('exclude_files')) {
this.props.injectProperties('exclude_files', '[]');
};
if (!value.hasOwnProperty('scan_frequency')) {
this.props.injectProperties('scan_frequency', '10s');
};
Expand Down Expand Up @@ -424,6 +427,13 @@ const EditInputFields = React.createClass({
bsStyle={this._fieldError('file-paths') ? 'error' : null}
help={this._fieldError('file-paths') ? this.state.errorMessage: "Location of the log files to use"}
required />
<Input type="text"
id={this._getId('exclude-files')}
label="Exclude Logfile"
value={this.props.properties.exclude_files}
onChange={this._changeList('exclude_files')}
bsStyle={this._fieldError('exclude-files') ? 'error' : null}
help={this._fieldError('exclude-files') ? this.state.errorMessage: "A list of regular expressions to match the files that you want Filebeat to ignore.(e.g. ['\.gz$'])"} />
<Input type="text"
id={this._getId('encoding')}
label="Encoding"
Expand Down

0 comments on commit 2c36f73

Please sign in to comment.