<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Rsyslog config not work - does not write to the file in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Rsyslog-config-not-work-does-not-write-to-the-file/m-p/427583#M74918</link>
    <description>&lt;P&gt;Hi Guys I have the following configuration lines in rsyslog but none of them helps me write to the destination file.&lt;/P&gt;

&lt;P&gt;if $msg contains "Tampering" then /var/log/camaras.log&lt;/P&gt;

&lt;P&gt;if $msg contains "Start one" then /var/log/camaras.log&lt;/P&gt;

&lt;P&gt;if $fromhost-ip=='172.16.1.5' and ($rawmsg contains 'Tampering') then /var/log/camaras.log&lt;/P&gt;

&lt;P&gt;if $rawmsg contains 'Tampering' then {action(type="omfile" File="/var/log/camaras.log") stop}&lt;/P&gt;

&lt;P&gt;if $rawmsg contains 'Tampering' then /var/log/camaras.log&lt;/P&gt;

&lt;P&gt;the example message is&lt;/P&gt;

&lt;P&gt;[RTSP SERVER]: Start one session, IP=172.16.57.3 [RTSP SERVER]: Tampering Detected, IP=172.16.57.8&lt;/P&gt;

&lt;P&gt;What can be?&lt;/P&gt;

&lt;P&gt;thanks for your help&lt;/P&gt;</description>
    <pubDate>Mon, 17 Jun 2019 22:50:17 GMT</pubDate>
    <dc:creator>josedgaravito</dc:creator>
    <dc:date>2019-06-17T22:50:17Z</dc:date>
    <item>
      <title>Rsyslog config not work - does not write to the file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Rsyslog-config-not-work-does-not-write-to-the-file/m-p/427583#M74918</link>
      <description>&lt;P&gt;Hi Guys I have the following configuration lines in rsyslog but none of them helps me write to the destination file.&lt;/P&gt;

&lt;P&gt;if $msg contains "Tampering" then /var/log/camaras.log&lt;/P&gt;

&lt;P&gt;if $msg contains "Start one" then /var/log/camaras.log&lt;/P&gt;

&lt;P&gt;if $fromhost-ip=='172.16.1.5' and ($rawmsg contains 'Tampering') then /var/log/camaras.log&lt;/P&gt;

&lt;P&gt;if $rawmsg contains 'Tampering' then {action(type="omfile" File="/var/log/camaras.log") stop}&lt;/P&gt;

&lt;P&gt;if $rawmsg contains 'Tampering' then /var/log/camaras.log&lt;/P&gt;

&lt;P&gt;the example message is&lt;/P&gt;

&lt;P&gt;[RTSP SERVER]: Start one session, IP=172.16.57.3 [RTSP SERVER]: Tampering Detected, IP=172.16.57.8&lt;/P&gt;

&lt;P&gt;What can be?&lt;/P&gt;

&lt;P&gt;thanks for your help&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2019 22:50:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Rsyslog-config-not-work-does-not-write-to-the-file/m-p/427583#M74918</guid>
      <dc:creator>josedgaravito</dc:creator>
      <dc:date>2019-06-17T22:50:17Z</dc:date>
    </item>
    <item>
      <title>Re: Rsyslog config not work - does not write to the file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Rsyslog-config-not-work-does-not-write-to-the-file/m-p/427584#M74919</link>
      <description>&lt;P&gt;Does the syslog user have permission to write to those destinations?&lt;/P&gt;

&lt;P&gt;Any clues in /var/log/messages ?&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2019 01:21:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Rsyslog-config-not-work-does-not-write-to-the-file/m-p/427584#M74919</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2019-06-18T01:21:05Z</dc:date>
    </item>
    <item>
      <title>Re: Rsyslog config not work - does not write to the file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Rsyslog-config-not-work-does-not-write-to-the-file/m-p/427585#M74920</link>
      <description>&lt;P&gt;Hello, yes,  the user has permissions, I currently have the configuration like this: &lt;/P&gt;

&lt;P&gt;if $ fromhost-ip == '172.16.254.25' then /var/log/camaras.log&lt;/P&gt;

&lt;P&gt;and it works fine, but I have more than three thousand devices and the configuration file becomes unmanageable&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2019 15:59:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Rsyslog-config-not-work-does-not-write-to-the-file/m-p/427585#M74920</guid>
      <dc:creator>josedgaravito</dc:creator>
      <dc:date>2019-06-18T15:59:08Z</dc:date>
    </item>
    <item>
      <title>Re: Rsyslog config not work - does not write to the file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Rsyslog-config-not-work-does-not-write-to-the-file/m-p/427586#M74921</link>
      <description>&lt;P&gt;Hi @josedgaravito,&lt;/P&gt;

&lt;P&gt;You will need to define a template and apply it based on how you wish to classify your logs. Are you trying to build one file per host ip or have all the data in the camaras.log file ?  How exactly are you expecting your data to be stored ? &lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2019 19:42:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Rsyslog-config-not-work-does-not-write-to-the-file/m-p/427586#M74921</guid>
      <dc:creator>DavidHourani</dc:creator>
      <dc:date>2019-06-18T19:42:56Z</dc:date>
    </item>
  </channel>
</rss>

