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

Introduce BEAT_INDEX_PREFIX #5110

Closed
wants to merge 6 commits into from

Conversation

roncohen
Copy link
Contributor

@roncohen roncohen commented Sep 6, 2017

This allows applications relying on libbeat to override the index pattern generated.

BEAT_INDEX_PREFIX defaults to BEAT_NAME.

This allows applications relying on libbeat to override the index pattern generated.

BEAT_INDEX_PREFIX defaults to `BEAT_NAME-*`.
@roncohen roncohen added the in progress Pull request is currently in progress. label Sep 6, 2017
Copy link
Member

@ruflin ruflin left a comment

Choose a reason for hiding this comment

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

In general I like this change as it adds more flexibility to set different default index names for community beats.

To keep in mind, dhe default inside beats is still the same. We probably should also allow to overwrite these somehow. The reason that I think this is also required is that the filebeat.yml file for example does not contain the index pattern, so the default one will be taken.

@tsg Could you think of other issues?

@roncohen Can you rebase this on master and squash this PR? Please also check the generator build on travis. It failed before because of some download issue. I think it should go green, but double check it.

@@ -155,10 +155,10 @@ output.elasticsearch:
# Number of workers per Elasticsearch host.
#worker: 1

# Optional index name. The default is "beatname" plus date
# and generates [beatname-]YYYY.MM.DD keys.
# Optional index name. The default is "index-prefix" plus date
Copy link
Member

Choose a reason for hiding this comment

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

should we call it beat-index-prefix to make sure index-prefix is not used anywhere else and be in sync with the variable name in the Makefile?

@simitt
Copy link
Contributor

simitt commented Sep 14, 2017

I work on a follow up PR that includes also change the default inside beats, see #5161

@ruflin
Copy link
Member

ruflin commented Oct 3, 2017

Closing as #5161 covered this work I think.

@ruflin ruflin closed this Oct 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in progress Pull request is currently in progress. libbeat
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants