Rundeck 2.10: howto remote logging to syslog - syslog

on premise we got a Rundeck 2.10 and it's configured logging to local file. I would like to configure it for logging on a remote syslog-ng.
I've managed to search infos on web but I've only found this page: https://docs.rundeck.com/docs/administration/maintenance/logs.html#streaming-log-plugins that talks about the "availability" of a Streaming Log Writers but I cannot find this plugin anywhere.
Someone got a guide to achieve this result?
Thanks in advance for your help

You have a good example written in Groovy here. And here a good explanation about Rundeck groovy plugins.
You can create a groovy file and put on the libext directory as any Rundeck plugin.

Related

Understand backend in QtService

I wrote a daemon using Skycoder42/QtService.
It works when run from QtCteator but on the server, I get the below error
qtservice: No backend found for the name "standard"
In the project document, I can't find anything
what is the backend? How can I install the service and start it?
Finally, I find the solution:
We must copy the path/to/qt/gcc_64/plugins/servicebackends directory next to executable

Configure Fluent-bit file output plugin set file rollover

I've a Fluent-bit running as docker instance which uses tail input plugin to read docker log files and currently I've configured output plugin to use Elasticsearch.
However in prod since Elasticsearch resides on another zone, don't want to consume bandwidth I don't want to use Elasticsearch, instead want to use file output plugin. But in file plugin there is no documentation explaining the file rollover configuration.
At the moment there is no such feature in Fluent Bit File output plugin. Please log the enhancement request on GitHub:
https://github.com/fluent/fluent-bit/issues/new?template=feature_request.md
Since this feature makes a lot of sense it can be implemented shortly,
regards,
Eduardo
Fluent Bit Maintainer

Writing an appspec.yml File for Deployment from S3 (and/or Bit Bucket) to AWS CodeDeploy

I'd like to make it so that a commit to our BitBucket repo (or S3 Bucket) automatically deploys code (using CodeDeploy) to our EC2 instances. I'm not clear what to use for the 'source' and 'destination' entry under the 'files' section in the appspec.yml file and also I am not cleared what to mention in BeforeInstall and AfterInstall under 'Hooks' section. I've found some examples on Google and AWs documentation but I am confused what to mention in above fields. The more I am exploring more I am getting confused.
Consider I am new to AWS Code Deploy.
Also it will be very helpful if someone can provide me step y step link how to configure and how to automate the CodeDeploy.
I was wondering if someone could help me out?
Thanks in advance for your help!
Thanks for using CodeDeploy. For new users, I'd like to recommend the following things to do:
Try to run First Run Wizard on console, it will should you the general process how the deployment goes. It also provide a default deployment bundle, also an appspec file included.
Once you want to try a deployment yourself, the Get Started doc is a great place to help you with some pre-requiste settings like IAM role
Then probably try some tutorials for a sample app too, which gives you some idea about deployment groups, deployment configuration, revision and so on.
The next step should be create a bundle for your own use cases, Appspec file doc would be a great place to refer. And for your concerns about BeforeInstall and AfterInstall, if your application doesn't need to do anything, the lifecycle events can be left as empty. BeforeInstall can be used to for for preinstall tasks, such as decrypting files and creating a backup of the current version, while AfterInstall can be used for tasks such as configuring your application or changing file permissions.
Now it comes to the fun part! This blog talks about details about how to integrate with Github(similar for Bitbucket). It's a little long, but really useful, and it also includes how to do automatically deployment once there is a new pushed commit. Currently Jenkins and CodePipline are really popular for auto-triggered deplyoments, but there are always a lot of other ways can achieve the same purpose like Lamda and so on

How can you use VIP Scanner to scan and test plugins

VIP Scanner documentation talks about its ability to scan and test plugins but I cannot find anywhere that talks about how this is achieved. Can anyone provide any clarity on the ability to scan plugins?
The best place I found was the Github respository for the plugin here:
VIP Scanner Github Repository
There is a file there called HACKING.md that has a code walkthrough. Hopefully that helps.
I was able to achieve this by following these steps
Clone the vip-quickstart project
In vip-quickstart dir start VM by running vagrant up
navigate to plugin dir i.e /srv/www/wp-content/plugins/{PLUGIN NAME}
run command wp vip-scanner scan
This scan provided all the errors that needed fixing for the WordPress VIP platform

automate script to transfer files using sftp

i need to write a script to automate file transfer from one server to another using only sftp .Can you guys provide me some example sftp automated script ??? or some code that would help me !!!
Check out this SO post for some suggestions. Additional details for your server environment would be helpful (LINUX, Windows, etc.).

Resources