-
Notifications
You must be signed in to change notification settings - Fork 72
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
Enable to rename hardcoded index names in visualizations for #69 #85
Conversation
…ing to ES This modification expect config file, where necessary renaming is defined. This file can be empty or doesn't need to exist. Script doesn't touch original files, it creates temp files instead. This also works with other custom visualizations - just add your names and your set to go. This solution requires further discussion. Conflicts: load.sh
…ing to ES This modification expect config file, where necessary renaming is defined. This file can be empty or doesn't need to exist. Script doesn't touch original files, it creates temp files instead. This also works with other custom visualizations - just add your names and your set to go. This solution requires further discussion.
I think we should have feature parity between |
I agree. Unfortunatelly, I am not able to do it for windows script yet. |
One idea here could be that we separate pushing the dashboards to elasticsearch from generating / updating them. I like that load.sh (and load.ps1) are scripts that can be executed on almost any machine without any requirements. The dynamic generation of updated template is probably much less common and is done by people that understand in detail what is going on. Do you guys think it would be an issue to require for these people having python installed for the first step generation? |
Python is available pretty much everywhere; you could make a windows release with a windows environment preinstalled in the windows zip for ease of use. No need to limit yourself |
I have opposite feeling. To me, it is best to keep it as simple as possible and as native to OS as possible (UX or WIN). In production env, the number of available programming interfaces is limited and I can usually only dream of python or ruby. Even OS's perl is usually outdated. But shell is always available. I suggest to keep it shell based (bash or even better ksh) because of different *UX environment it can run on. I will also test this script on Solaris due to compatibility, later when I have some time left. |
@radoondas Thank you for your contribution. LGTM. I would say it's ok for now to read from .beatconfig only for the unix systems. We can implement it ourselves for Windows or maybe someone else from the community will be faster. Can you please rebase, so we can merge your PR? |
filebeat-/filebeat- | ||
topbeat-/topbeat- | ||
winlogonbeat-/winlogonbeat- | ||
logstash-/logstash- |
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.
In previous version we had funny values as an example. Original configfile should have sane values.
Question is where to document how to use it.
@monicasarbu I have fixed my PR. It is now with sync. |
I'm also ok moving forward here. I think we need to rethink this in the long term as templates will get more complex. I'm thinking about loading templates through beats directly and the values above directly in the beats config file (just and idea so far). About the next steps:
|
I'm fine with the next steps. I should explain more this 'sed' thing I mentioned earlier. |
@radoondas We recently decided to move all the dashboards related to a Beat to the beats repository and starting with the next release 5.0.0-alpha2, we will not use the beats-dashboards anymore. Starting with 5.0.0-alpha2, the As the script for importing the dashboards is getting more and more complex, we are planning to write a version in Golang instead of expanding the bash and powershell scripts. The biggest advantage is that we need to maintain only one script, not two scripts. Thank you for contributing. The change you did is already used by other users. Can you please rebase, so we can merge your PR? |
@monicasarbu I understand and agree on approach with just one script :) And OK, I'll rebase as soon as I can. |
@monicasarbu I had to create another PR #117 due to complexity of the rebase. It took me much less time to do another PR from up-to-date-branch. Sorry for any inconvenience. |
@radoondas no problem, I merged the other PR. |
This modification expect a configuration file (.beatconfig), where necessary renaming is defined.
Configuration file can be empty or doesn't need to exist.
Script doesn't touch original files, it creates temp files instead.
It works with other custom visualizations - just add your names and your set to go.
It has also 'fallback' option if there is no configuration file - it is questionable what to do - do we 'sed' when there is no change?
Also 'tokens' can be configurable?
This solution requires further discussion.