Skip to content
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

Add Filebeat module to state API #7532

Merged
merged 1 commit into from
Jul 9, 2018
Merged

Conversation

ruflin
Copy link
Member

@ruflin ruflin commented Jul 6, 2018

The document looks as following:

{
  "module": {
    "count": 1,
    "names": ["redis"]
  }
}

for _, input := range p.inputs {
input.Stop()
}

// Loop through and remove modules, only 1 normally
for m, _ := range p.moduleRegistry.registry {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should omit 2nd value from range; this loop is equivalent to for m := range ...

@@ -127,13 +140,57 @@ func (p *inputsRunner) Start() {
for _, input := range p.inputs {
input.Start()
}

// Loop through and add modules, only 1 normally
for m, _ := range p.moduleRegistry.registry {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should omit 2nd value from range; this loop is equivalent to for m := range ...

@ruflin ruflin mentioned this pull request Jul 6, 2018
9 tasks
@ruflin
Copy link
Member Author

ruflin commented Jul 9, 2018

I created #7536 for the refactoring.

@ruflin ruflin force-pushed the module-state branch 2 times, most recently from 0e18aae to 9eb3f43 Compare July 9, 2018 09:35
The document looks as following:

```
{
  "module": {
    "count": 1,
    "names": ["redis"]
  }
}
```
@exekias exekias merged commit 78d2f33 into elastic:master Jul 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants