You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Allow sampling and redaction rules for Scalyr
This feature enables using sampling and redaction rules for Scalyr.
More details about sampling_rules and redaction_rules can be found
here:
https://eu.scalyr.com/help/scalyr-agent
* Updating requirements.txt
* fixing flake8 errors
* Updating readme
* Updated README
Copy file name to clipboardexpand all lines: README.rst
+23
Original file line number
Diff line number
Diff line change
@@ -321,6 +321,29 @@ The default parser for container logs is ``json`` parser. In some cases however
321
321
322
322
The value of ``kubernetes-log-watcher/scalyr-parser`` annotation should be a json serialized list. If ``container`` value did not match, then default parser is used (i.e. ``json``).
323
323
324
+
Scalyr sampling rules
325
+
....................
326
+
327
+
Sampling rules enable to only ship a certain pattern that matches a regular expression and specified amount of log percentage to Scalyr. The example shows an expression that matches ``app-1`` and a match expression ``my-expression``. If it's met, only 10% of it will be shipped to Scalyr using a ``sampling_rate`` of ``0.1``.
Redaction rules enable to avoid shipping sensitive data that shouldn't get transferred to Scalyr either getting fully removed from log files or to replace them with specific strings. The first example below shows how matches will be fully removed and the second shows how matches will be replaced with a different string.
0 commit comments