-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] Rename prospector to input #5944
Closed
Closed
Changes from all commits
Commits
Show all changes
63 commits
Select commit
Hold shift + click to select a range
78107fc
First step of refactoring move file into an input package
ph fea2be3
Rename Prospector interface to input
ph 9cd712f
Rename Prospectorer struct to InputRunner
ph 8d8719e
Rename prospectorConfig to inputConfig
ph 9d9b63f
rename variables
ph 7d5748a
change variables
ph 87360a8
inputrunner -> runner
ph a403fe3
Retricts go version to build the backward compatibility layer
ph 7978674
rename prospector -> input
ph d3b7b84
prospector -> input
ph 3728c00
more rename prospector -> input
ph 53d4026
Renaming prospector -> input
ph be47d56
rename prospector -> input
ph d8ec7e5
prospector -> input
ph 1f10990
prospector -> input
ph 6bf250c
prospector -> input
ph e4e0db1
prospector -> input
ph fb470ef
prospector -> input
ph aa66a55
rename prospector -> input
ph c04bb35
prospector -> input
ph 4834d76
prospector -> input
ph ef85195
make it configurable
ph 8d2d4b1
Fileset correctly migrate from prospector to input
ph 32d179e
pluginKey from prospector to input
ph 743acbc
Allow module manifest to define either an input or a prospector
ph 7e703a8
Backward compatibility last fixes
ph aa09e39
Add the input to the event data
ph bc475e1
Move the prospector into input
ph fa832c3
rename the main prospector.go to input.go
ph 9e1534b
Migrate: Log prospect to the input interace and rename prospector to
ph 0c9fea4
Migrate: STDIN prospector to the input interface
ph 5070dbb
Migrate: UDP prospector the input interface
ph 112ff25
Migrate: Redis prospector to the input interface
ph 13d32d0
Migrate: Docker prospector to input interface
ph ff48fab
Merge with previous commit for docker
ph 57d6e43
Rename test_prospector.py
ph 2042c8c
merge with previous commit
ph a47c88c
Module: traefik, prospector -> input
ph 7e79aec
Migrate: Traefik json expectation
ph cc93de3
Migrate: Module system yaml prospector -> input
ph b93715b
Migrate: System json prospector -> input
ph 00028ff
Migrate: Redis prospector -> input
ph afc3219
Migrate: Redis json prospector -> input
ph b81f280
Migrate: Postgresql prospector -> input yaml
ph db7ef32
Migrate: postgresql prospector -> input (json)
ph eb3faef
Migrate: nginx prospector -> input (yaml)
ph 791a5d2
Migrate: nginx prospector -> input (json)
ph 250daf9
Migrate: mysql prospector -> input (yaml)
ph c65a132
Migrate: logstash prospector -> input (yaml)
ph c5731d3
Migrate: Logstash module prospector -> input (json)
ph 1478e5d
Migrate: Kafka module prospector -> input (yaml)
ph 7e87955
Migrate: Kafka module prospector -> input (json)
ph a6ac2e8
Migrate: icinga module prospector -> input (yaml)
ph 7d68769
Migrate: icinga module prospector -> input (json)
ph 7fa797b
Migrate: Auditd module prospector -> input (yaml)
ph bd3ff74
Migrate: Auditd module prospector -> input (json)
ph 0b80320
Migrate: apache2 module prospector -> input (yaml)
ph edfe266
Migrate: apache2 module prospector -> input (json)
ph 52682a5
Update filebeat yml files and template for inputs
ph 4c8fdd9
Add input.type field and keep prospector.type for backward compatibility
ph 6501bed
Adjust the import generator to check into the input folder instead and
ph 0af0e45
missing changing packages
ph 825831e
Adjust docker compose to find the docker file into the new directory
ph File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
#=========================== Filebeat prospectors ============================= | ||
#=========================== Filebeat inputs ============================= | ||
|
||
# List of prospectors to fetch data. | ||
filebeat.prospectors: | ||
# Each - is a prospector. Most options can be set at the prospector level, so | ||
# you can use different prospectors for various configurations. | ||
# Below are the prospector specific configurations. | ||
# List of input to fetch data. | ||
filebeat.inputs: | ||
# Each - is an input. Most options can be set at the input level, so | ||
# you can use different inputs for various configurations. | ||
# Below are the input specific configurations. | ||
|
||
# Type of the files. Based on this the way the file is read is decided. | ||
# The different types cannot be mixed in one prospector | ||
# The different types cannot be mixed in one input | ||
# | ||
# Possible options are: | ||
# * log: Reads every line of the log file (default) | ||
# * stdin: Reads the standard in | ||
|
||
#------------------------------ Log prospector -------------------------------- | ||
#------------------------------ Log input -------------------------------- | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should we change this to say "Input" instead of "Log input" given the various types we now support? |
||
- type: log | ||
|
||
# Change to true to enable this prospector configuration. | ||
# Change to true to enable this input configuration. | ||
enabled: false | ||
|
||
# Paths that should be crawled and fetched. Glob based paths. | ||
|
@@ -67,7 +67,7 @@ filebeat.prospectors: | |
# Time strings like 2h (2 hours), 5m (5 minutes) can be used. | ||
#ignore_older: 0 | ||
|
||
# How often the prospector checks for new files in the paths that are specified | ||
# How often the input checks for new files in the paths that are specified | ||
# for harvesting. Specify 1s to scan the directory as frequently as possible | ||
# without causing Filebeat to scan too frequently. Default: 10s. | ||
#scan_frequency: 10s | ||
|
@@ -137,7 +137,7 @@ filebeat.prospectors: | |
# this can mean that the first entries of a new file are skipped. | ||
#tail_files: false | ||
|
||
# The Ingest Node pipeline ID associated with this prospector. If this is set, it | ||
# The Ingest Node pipeline ID associated with this input. If this is set, it | ||
# overwrites the pipeline option from the Elasticsearch output. | ||
#pipeline: | ||
|
||
|
@@ -203,23 +203,23 @@ filebeat.prospectors: | |
# Note: Potential data loss. Make sure to read and understand the docs for this option. | ||
#close_timeout: 0 | ||
|
||
# Defines if prospectors is enabled | ||
# Defines if input is enabled | ||
#enabled: true | ||
|
||
#----------------------------- Stdin prospector ------------------------------- | ||
#----------------------------- Stdin input ------------------------------- | ||
# Configuration to use stdin input | ||
#- type: stdin | ||
|
||
#------------------------- Redis slowlog prospector --------------------------- | ||
# Experimental: Config options for the redis slow log prospector | ||
#------------------------- Redis slowlog input --------------------------- | ||
# Experimental: Config options for the redis slow log input | ||
#- type: redis | ||
#hosts: ["localhost:6379"] | ||
#username: | ||
#password: | ||
#enabled: false | ||
#scan_frequency: 10s | ||
|
||
# Timeout after which time the prospector should return an error | ||
# Timeout after which time the input should return an error | ||
#timeout: 1s | ||
|
||
# Network type to be used for redis connection. Default: tcp | ||
|
@@ -231,8 +231,8 @@ filebeat.prospectors: | |
# Redis AUTH password. Empty by default. | ||
#password: foobared | ||
|
||
#------------------------------ Udp prospector -------------------------------- | ||
# Experimental: Config options for the udp prospector | ||
#------------------------------ Udp input -------------------------------- | ||
# Experimental: Config options for the udp input | ||
#- type: udp | ||
|
||
# Maximum size of the message received over UDP | ||
|
@@ -241,7 +241,7 @@ filebeat.prospectors: | |
#========================== Filebeat autodiscover ============================== | ||
|
||
# Autodiscover allows you to detect changes in the system and spawn new modules | ||
# or prospectors as they happen. | ||
# or inputs as they happen. | ||
|
||
#filebeat.autodiscover: | ||
# List of enabled autodiscover providers | ||
|
@@ -262,7 +262,7 @@ filebeat.prospectors: | |
#filebeat.registry_file: ${path.data}/registry | ||
|
||
# These config files must have the full filebeat config part inside, but only | ||
# the prospector part is processed. All global options like spool_size are ignored. | ||
# the input part is processed. All global options like spool_size are ignored. | ||
# The config_dir MUST point to a different directory then where the main filebeat config file is in. | ||
#filebeat.config_dir: | ||
|
||
|
@@ -272,9 +272,9 @@ filebeat.prospectors: | |
|
||
# Enable filebeat config reloading | ||
#filebeat.config: | ||
#prospectors: | ||
#inputs: | ||
#enabled: false | ||
#path: prospectors.d/*.yml | ||
#path: inputs.d/*.yml | ||
#reload.enabled: true | ||
#reload.period: 10s | ||
#modules: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd say inputs (plural)