Reputation: 1644
I have a simple GCE Instance and I just lost the external IP allocated to it. I'm the only admin and the external IP just vanished after a server halt and all sites that I have there simply stop to work...
I have to reserve another external IP, change the DNS for every website but this operation was very stressful.
Is there a log on Google Cloud where I can see what happened?
And is there any strategy to have a failsafe for this glitch?
Upvotes: 1
Views: 849
Reputation: 4443
Use the VPC Flow logs for network monitoring:
VPC Flow Logs records a sample of network flows sent from and received by VM instances, including instances used as GKE nodes. These logs can be used for network monitoring, forensics, real-time security analysis, and expense optimization.
Linked documentation describes how to enable it and set up.
You can furhter improve monitoring if you enable logging for firewall rules (you have to do it individually for each one).
About this "dissapearing IP" - just reserve an external IP for your instance - if this happens again you can report an issue at IssueTracker but you could also try to look into some logs inside your VM (here's a very usefull site about logs in Linux) that may be helpful for you.
You may also try to view your activity logs (or "classic" logs) for your instance in StackDriver to put even more light in what happened and why your reservded IP dissapeared.
Upvotes: 1