Comments (18)
Could you please pull the latest image and provide this parameter when starting the container: -e GRAYLOG_NODE_ID=30833ff4-f14c-4641-8001-0866ac439552
(randomize the ID string!) This should now set the node ID to defined value. When the container is recreated on top of old data you can re-use the same ID. This should persist even inputs.
from graylog2-images.
Yes the inputs are stored in MongoDB. The problem is that they are associated through the servers node-id with a defined server instance. So every time you start a complete new container based on an old database, you get a new server node-id and the old inputs don't belong to this server instance anymore. The idea was to just stop and start containers. In this way the node-id should be the same.
from graylog2-images.
Ah, I see now.
So when using global inputs instead, they persist for every container instance I assume?!
Although it's kind of is obvious, I feel like this should be documented in the docker/README.md
.
from graylog2-images.
Global means that a cluster of Graylog servers will all start the same input. But they are still bound to a node-id. Yep, will drop a line in the docs.
from graylog2-images.
Closing now because no real issue. Documentation is added.
from graylog2-images.
@mariussturm does specifying a container name with --name mycontainer
set the node ID persistently? Or is it tied to something else?
from graylog2-images.
do you mean docker run --name ...
? That is not used inside of the container.
from graylog2-images.
I actually meant docker run --hostname=myname
, sorry. That sets the hostname as far as all the apps inside the container are concerned so maybe it can be used to persist the settings.
from graylog2-images.
I think the cleanest solution would be to introduce a new container option for it. So people could provide the node-id through another environment variable.
from graylog2-images.
Works for me :) I just thought setting the hostname (which typically is a random string if you don't provide it explicitly) might be a nice way to provide the node ID. It would be nice to use the same node ID for ES as well, actually, so you can identify it easily in the ES logs.
from graylog2-images.
I grabbed the nodeid from the currenlty running node and passed that in after a container destroy and restart. There is now a node running with that old id.
I can't verify that the inputs are working, because I've setup mine to be global (started on all nodes) so they always come back even without the persisted node id.
I have a different issue. I have one custom user. That user exists, but I can't login and get invalid credentials. After each restart I have to go to System > Users and update the password for this user. And then things are fine. The persistent GRAYLOG_NODE_ID didn't fix this.
from graylog2-images.
@sheavner how do you grab the node ID of a running node? I didn't find that in the docs and it's not obvious from the Graylog UI. Thanks!
The invalid user password is definitely inconvenient but not as bad as losing data. I hope it can be resolved.
from graylog2-images.
Ok, thanks for the feedback! I think we have to expose the password_secret
as well. Will take a look soon.
from graylog2-images.
@tzz If there's only one node, it's obvious from the system messages on the System Overview page at /system?page=0. I think I found mine on /system/nodes which shows the short hash + nodename. If you click on the node name, you can get the full nodeid from the url as you're viewing the node details.
from graylog2-images.
Thanks @mariussturm I found it now. I knew the short version (which I saw elsewhere) was not enough but didn't notice the node detail page. I'll wait for the password secret but otherwise this persistence is a great feature.
from graylog2-images.
Could you please pull the latest image and add this parameter to set the server password salt: -e GRAYLOG_SERVER_SECRET=somerandomstring
Next time you spin up the container with the same secret the user password should work.
from graylog2-images.
@mariussturm My non-admin user password did persist across a test restart of the server after the pull. Thanks for fixing this.
from graylog2-images.
Thanks for testing!
from graylog2-images.
Related Issues (20)
- Problems importing the OVA file into vCenter 6.5 HOT 14
- Enhanced networking with the Elastic Network Adapter (ENA) HOT 2
- Graylog is restarting... HOT 1
- Docker-entrypoint failing on read-only config mounts (e.g. kubernetes configmap) HOT 2
- Graylog ova 2.4.3 default Appliance input dont start HOT 1
- Update Ubuntu version to 18.04LTS HOT 1
- API Docs in API Browser not available - blocked by CORS HOT 3
- My Graylog server Mongodb is Down HOT 4
- Problems importing the OVA file into esxi 6.5 and 5.1 HOT 2
- add 'action.auto_create_index: false' to elasticsearch configuration HOT 1
- Run the OVA image with no working DHCP. The printed password is not correct HOT 2
- force number of processors for Elasticsearch
- Update AMIs to latest version HOT 1
- Problems importing the OVA file into vCenter 6.7 HOT 6
- AWS GovCloud AMI HOT 4
- Availability of AMI in eu-north-1 (Stockholm) HOT 2
- OVA Image does not support IPv6
- Update OVA and AMI images to Ubuntu 20.04 LTS HOT 1
- Unable to Logon to new Graylog Install HOT 1
- username and passowrd HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from graylog2-images.