add precise timestamp config example
diff --git a/README.rst b/README.rst
index a0f5b5a..ec2e2ca 100644
--- a/README.rst
+++ b/README.rst
@@ -8,7 +8,16 @@
Sample pillars
==============
-Single rsyslog service
+Rsyslog service with default logging template
+
+.. code-block:: yaml
+
+ rsyslog:
+ client:
+ enabled: true
+
+
+Rsyslog service with precise timestamps, severity, facility.
.. code-block:: yaml
@@ -17,7 +26,8 @@
enabled: true
format:
name: TraditionalFormatWithPRI
- template: '"%pri-text%: %timegenerated% %HOSTNAME% %syslogtag%%msg:::drop-last-lf%\n"'
+ template: '"%syslogpriority% %syslogfacility% %timestamp:::date-rfc3339% %HOSTNAME% %syslogtag%%msg:::sp-if-no-1st-sp%%msg:::drop-last-lf%\n"'
+
Read more
=========
diff --git a/tests/pillar/client_single.sls b/tests/pillar/client_single.sls
index 3868fea..5daa71b 100644
--- a/tests/pillar/client_single.sls
+++ b/tests/pillar/client_single.sls
@@ -1,7 +1,7 @@
-rsyslog:
- client:
- enabled: true
- format:
- name: TraditionalFormatWithPRI
- template: '"%pri-text%: %timegenerated% %HOSTNAME% %syslogtag%%msg:::drop-last-lf%\n"'
+ rsyslog:
+ client:
+ enabled: true
+ format:
+ name: TraditionalFormatWithPRI
+ template: '"%syslogpriority% %syslogfacility% %timestamp:::date-rfc3339% %HOSTNAME% %syslogtag%%msg:::sp-if-no-1st-sp%%msg:::drop-last-lf%\n"'