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

Use logstash index pattern #43

Open
sandervandegeijn opened this issue Dec 19, 2021 · 8 comments
Open

Use logstash index pattern #43

sandervandegeijn opened this issue Dec 19, 2021 · 8 comments

Comments

@sandervandegeijn
Copy link

The default index pattern is "waf-logs-%{+YYY.MM.dd}". It's using logstash, usually logstash indexes are prefixed with logstash-*. This also helps with the default security rules. Please use logstash- at the beginning of the string.

Also WAF is a bit generic, maybe also f5 in the index name to be able to distinguish from other sources.

@464d41
Copy link
Contributor

464d41 commented Dec 20, 2021

Hi @ict-one-nl, thank you for raising the issue. Could you please give some more details on why having logstash- prefix is useful? Links to ELK docs or some other trusted sources would be perfect as well.

@sandervandegeijn
Copy link
Author

A of people will prefix the indexes with logstash because they will have security roles enabled that enable logstash to write data to logstash-*. To KISS it's more efficient not having to create extra roles / or index patters for each individual log flow.

Opensearch does this by default as well.

@464d41
Copy link
Contributor

464d41 commented Dec 22, 2021

I got what you are saying. It makes sense to me. Do you mind sharing a link to a documentation that gives similar recommendation?

@sandervandegeijn
Copy link
Author

Well it's more like common sense, but you can see it referenced here: https://www.elastic.co/guide/en/kibana/6.8/tutorial-define-index.html#:~:text=An%20index%20pattern%20can%20match,DD%20.

Also, in opensearch it's the default config.

@464d41
Copy link
Contributor

464d41 commented Dec 23, 2021

Could you please also share a link to security rules you mentioned in the first comment?

@sandervandegeijn
Copy link
Author

Already linked the elastic docs, config example from opensearch as well: https://github.com/opensearch-project/security/blob/main/securityconfig/roles_mapping.yml

@464d41
Copy link
Contributor

464d41 commented Jan 10, 2022

Let's stick to elastic for now. Is there a doc for elastic on default security rules you've mentioned in the very first comment?

@sandervandegeijn
Copy link
Author

I already linked the elastic docs and this is common practice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants