Skip to content

Instantly share code, notes, and snippets.

Created May 12, 2015 20:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/d20990f74afe8d7ca9dc to your computer and use it in GitHub Desktop.
Save anonymous/d20990f74afe8d7ca9dc to your computer and use it in GitHub Desktop.
{% raw %}
{
"paths": [
"/var/log/messages",
"/var/log/secure",
"/var/log/redis/redis.log",
"/var/log/redis/sentinel.log"
{{ ']' }},
"fields": { "type": "syslog" }
}
{% endraw %}
Result:
local:
Data failed to compile:
----------
Rendering SLS 'base:states/logstash-forwarder' failed: Unknown yaml render error; line 21
---
[...]
- marker_start: "# LOG PATHS"
- marker_end: "# END LOG PATHS"
- content: |
{
"paths": [ <======================
"/var/log/messages",
"/var/log/secure",
"/var/log/redis/redis.log",
"/var/log/redis/sentinel.log"
],
[...]
---
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment