- Exec: |
$Message = $raw_event;
$raw_omsg=$raw_event;
parse_syslog_ietf($Message);
$meta_sip4 =$MessageSourceAddress;
{% import_yaml "nxlog/defaults.yml" as default_settings %}
{% set nxlog_settings = salt['pillar.get']('nxlog', default_settings.nxlog, merge=True) %}
nxlog_config:
file.managed:
- name: /opt/nxlog/conf/nxlog.conf
- source: salt://nxlog/files/nxlog.config.jinja
- template: jinja
- defaults:
nxlog_settings: {{ nxlog_settings }}
{{ exec_code }}
$Message = $raw_event;\n$raw_omsg=$raw_event;\nparse_syslog_ietf($Message);\n$meta_sip4 =$MessageSourceAddress;\n
$Message = $raw_event;$raw_omsg=$raw_event;parse_syslog_ietf($Message);$meta_sip4 =$MessageSourceAddress;
AttributeError: 'dict' object has no attribute 'splitlines'
I am going to try using the indent within my template to see if I can achieve the desired results.