-
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
Move prospector log to its own package #4273
Conversation
filebeat/prospector/prospector.go
Outdated
default: | ||
return fmt.Errorf("Invalid input type: %v", p.config.InputType) | ||
return fmt.Errorf("Invalid prospector type: %v. Change input_type.", p.config.InputType) |
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.
[golint] reported by reviewdog 🐶
error strings should not be capitalized or end with punctuation or a newline
@@ -509,3 +511,16 @@ func (l *Log) updateState(state file.State) error { | |||
|
|||
return nil | |||
} | |||
|
|||
func (p *Prospector) Wait() { |
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.
[golint] reported by reviewdog 🐶
exported method Prospector.Wait should have comment or be unexported
p.Stop() | ||
} | ||
|
||
func (p *Prospector) Stop() { |
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.
[golint] reported by reviewdog 🐶
exported method Prospector.Stop should have comment or be unexported
state, | ||
nil, | ||
outlet, | ||
) | ||
|
||
return h, err | ||
} | ||
|
||
func (p *Prospector) Wait() {} |
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.
[golint] reported by reviewdog 🐶
exported method Prospector.Wait should have comment or be unexported
state, | ||
nil, | ||
outlet, | ||
) | ||
|
||
return h, err | ||
} | ||
|
||
func (p *Prospector) Wait() {} | ||
func (p *Prospector) Stop() {} |
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.
[golint] reported by reviewdog 🐶
exported method Prospector.Stop should have comment or be unexported
78335f9
to
1e9e26c
Compare
1e9e26c
to
3255a7c
Compare
jenkins, retest it |
@@ -18,7 +18,7 @@ import ( | |||
|
|||
"github.com/satori/go.uuid" | |||
|
|||
"github.com/elastic/beats/filebeat/config" | |||
cfg "github.com/elastic/beats/filebeat/config" |
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.
filebeatConfig?
3255a7c
to
c4b0d62
Compare
filebeat/prospector/prospector.go
Outdated
default: | ||
return fmt.Errorf("Invalid input type: %v", p.config.InputType) | ||
return fmt.Errorf("invalid prospector type: %v. Change input_type.", p.config.InputType) |
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.
[golint] reported by reviewdog 🐶
error strings should not be capitalized or end with punctuation or a newline
This is the last step in reorganising the packages related to prospector and harvester. Follow up PR's will mainly focusing on abstracting out common functionality, standardise naming and have proper interfaces. * Merge log harvester and log prospector config into one config * Rename Log to prospector as part of the new package structure * Move log harvester logic to log prospector package * Keep common harvester logic in its own package * stdin harvester still heavily depends on log harvester, needs to be split up and simplified at a later stage * Further cleanup of Prospector interface. `Wait()` only exists as a temporary solution.
c4b0d62
to
676e836
Compare
This is the last step in reorganising the packages related to prospector and harvester. Follow up PR's will mainly focusing on abstracting out common functionality, standardise naming and have proper interfaces.
Wait()
only exists as a temporary solution.