sudo chef-client --local-mode /path/to/recipe/file.rb
This object is available since 7.5.3. It permits to specify parameters for the main message queue. Note that only queue-parameters are permitted for this config object. This permits to set the same options like in ruleset and action queues. A special statement is needed for the main queue, because it is a different object and cannot be configured via any other object.
Note that when the main_queue() object is configured, the legacy $MainMsgQ... statements are ignored.
main_queue(
queue.size="100000" # how many messages (messages, not bytes!) to hold in memory
queue.type="LinkedList" # allocate memory dynamically for the queue. Better for handling spikes
| # Catch log messages generated by the Prosody daemon | |
| if $programname == 'prosody' then { | |
| # Skip logging of SASL AUTH log entries (base64 encoded username/passwords) | |
| # Note: recent updates to the mod_auth_dovecot module likely make | |
| # this unnecessary, but I left it in to protect against regressions | |
| if $msg contains ":auth_dovecot: sending" then { | |
| stop | |
| } |
| Example | whyaskwhy.org (bare) | rsyslog.com (WordPress integration) |
|---|---|---|
| 1 | section headers - default theme | section headers - default theme |
| 2 | section headers - guzzle theme | section headers - guzzle theme |
| 3 | section headers - readthedocs theme | section headers - readthedocs theme |
| 4 |
| #!/usr/bin/env python | |
| """A message modification plugin to remove credentials | |
| Copyright (C) 2014 by Adiscon GmbH and Peter Slavov | |
| Copyright (C) 2016 by Datadog | |
| This file is part of rsyslog. | |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| #------------------------------------------------------------------------------------ | |
| #\|-|-|/\|-|-|/\|-|-|/\|-|-|/\|-|-|/\|-|-|/\|-|-|/\|-|-|/\|-|-|/\|-|-|/\|-|-|/\|-|-|/ | |
| #/|-|-|\/|-|-|\/|-|-|\/|-|-|\/|-|-|\/|-|-|\/|-|-|\/|-|-|\/|-|-|\/|-|-|\/|-|-|\/|-|-|\ | |
| #------------------------------------------------------------------------------------ | |
| #|\-- | |
| #|-\-Author: Chris Rakowitz | |
| #|--\Purpose: Allows for Enabling and Disabling of the Windows Remote Managment | |
| #|--/ Service. | |
| #|-/-Date: October 10, 2015 | |
| #|/--Updated: June 21, 2016 (1.01) |
These commands were run inside a VM, while the regular tweaking/editing was done in an editor outside of the VM.
ubuntu@ubuntu-devbox:/tmp/rsyslog-doc$
git reset HEAD --hardgit checkout update-release-script-to-use-docker-imagegit pull --ff-onlycd tools/buildenv/sudo docker build -t deoren/rsyslog_doc_gen:i536 $PWD/sudo docker push deoren/rsyslog_doc_gen:i536
These notes are mainly for prepping a container for rsyslog testing, but generic enough to use as a basic Ubuntu 16.04 base
- sudo docker pull ubuntu:16.04
- sudo docker run -ti -p 2222:22 ubuntu:16.04
- apt-get update
- apt-get install software-properties-common
- apt-add-repository ppa:adiscon/v8-stable
- apt-get update
Common regexes that I find useful (or believe I will).
TODO: Sync with https://wiki.whyaskwhy.org/Programming:Regular_Expressions
This is used to insert spacing around the separate bullet points in the Rsyslog ChangeLog to make them easier to read.
