My use case is to send logs of a specific container to Loki using Promtail. All the blogs I am read so far just mention sending all the logs but not any specific one. Any help or references would be appreciated. Thanks in advance.
Related
I want to write error logs to GCP. But can't find out how to filter messages with string, ex: level='error'
I have read this documentation.
Currently, I can't think anyway but write it to Fluentd => filter message => write GCP. But it has added an unnecessary step in my case.
Do we have a straightforward way to filter and send logs directly to GCP?
Most simple way is to just go to logs explorer and change "severity" to "error" - like so:
This way you will only see error messages for all your VM's.
It's another matter if you want fluentd to send just errors to GCP. In this case you need to reconfigure it. Have a look at the documentation on how to send structured logs to GCP and make proper changes.
Depending on your needs fist method will work out of the box. Second one needs some tinkering but will also work.
I am trying to test different web servers on the same website and docker host.
I tried to launch both the containers with the same website root and same front-end traefik label, but it seems that only one of the two gets pointed. The second one doesn't get any request. It starts replying only if I stop the other one, so looks like it's working in a sort of fail over.
What is the right and proper way to achieve this kind of result? Thank you!
Ok, found out. All I need to specify is "-l traefik.backend=domain.com" on both the containers, so they know they're both backends for the same domain.
I'm new to web development, rails, etc. I have what is probably a very dumb questions but I searched and was not able to find the specific answer, though there's a good chance I asked the wrong question.
I'm following this tutorial which wants you to create a test rails app locally and view it via localhost in a browser. However I am learning directly on the server itself. This is because currently I only have an iPad to work with, but I've been able to do everything directly on the server itself using Panic's Prompt. To continue with these lessons I need to be able to see what I've done via a browser which since I can't use localhost, I want to see directly on my server. Here is the tutorial I'm following:
http://installfest.railsbridge.org/installfest/create_a_rails_app
Here is my website:
redvardo.com
Any help or pointers toward the correct information would be helpful. Please tell me if I did not include enough information as well. Thanks!
If your server provides a public IP address, use that ip to access the project. First of all make sure the brick server is running via rails s then you can go ahead and access the page directly via the ip: 12.13.31.115:3000 for example. This would be the fastest way, otherwise you need to setup dns to point to your server via your domain name registrar.
Hope that helps.
Thanks for the help but for me, what I did was simply install a VNC server on the server itself, now I can view localhost on the server for everything the tutorials are asking.
Bitbucket has improves its Webhooks functionality. We won't be able to create POST or Pull Request POST in Services, instead in Webhooks.
So I have tried to create POST request to Slack using new Webhook, but it doesn't work. Clicked on View requests, I got 500 error on the request. While with the same URL, it works in Services.
I don' know what I did wrong. Bitbucket documentation doesn't help. Can someone please help me?
I'm experiencing the same problem, and it appears to be a known issue with the integration (from the perspective of Slack).
As documented on slack.com:
This integration only supports the Repository push trigger at this
time, so make sure it is selected. Press Save when you're done.
I'm not sure where to find a public link to this document, but you can find it if you go to add the bitbucket integration. And the documentation on slack appears to be up to date with the new bitbucket webhooks.
Hopefully one of the parties fixes it soon.
Update:
The integration appears to have started working in the last couple of days. At least for us with PR create/update/comment?approve/merge.
Maybe Graham is talking about this here. You maybe need to change your IP-whitelist to connect to your server.
131.103.20.160/27 165.254.145.0/26 104.192.143.0/24.
I never used Posthooks. I m myself struggeling with the webhook configuration.
Not sure if this is related to your issue, but I'm putting it here as it might help others, there's currently an open issue related to non-standard ports that has similar symptoms:
https://bitbucket.org/site/master/issue/11514/webhook-fails-when-using-an-alternative
Do you have any IP limits on what IPs can post to that end target? The new web hooks may be using different IP addresses than the old services.
I have three stacks on Amazon Web Services OpsWorks. As an instance, there is a "Rails App Server". When I try to stop it, it just says "stopping" for hours. Does someone know this bug or problem ?
Thank you.
This is a common issue in Opsworks - when instances cannot be stopped or removed due to permission changes, volume removals, etc. You can request them to be removed in AWS forum. Post the problem, instance id and stack id: https://forums.aws.amazon.com/forum.jspa?forumID=153&start=0 and AWS admins monitoring the forum should pick it up.
You'll need to be logged in with your AWS account in order to access the forums.
Seems like something looping.
Try check your shutdown run list recipes.