<?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 How to add condition in splunk data model constraint in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/How-to-add-condition-in-splunk-data-model-constraint/m-p/208057#M21546</link>
    <description>&lt;P&gt;I have a outbound flow that gets data written by App, mem and cards api. cards and mem api is writing logs into applog but App is writing logs in syslog.&lt;/P&gt;

&lt;P&gt;In my data model I have sourcetype=app_log as the source type. So in case of all flows except app I am getting write splunk dashboard report but for application I am not getting any data.&lt;/P&gt;

&lt;P&gt;So I want to add a condition in data model "constraint" section like when api is applications then sourcetype=app_log OR sourcetype=sys_log else sourcetype=app_log&lt;/P&gt;

&lt;P&gt;Can anyone assist me how to do this in splunk?&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 12:12:35 GMT</pubDate>
    <dc:creator>tejaswiniul</dc:creator>
    <dc:date>2020-09-29T12:12:35Z</dc:date>
    <item>
      <title>How to add condition in splunk data model constraint</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-to-add-condition-in-splunk-data-model-constraint/m-p/208057#M21546</link>
      <description>&lt;P&gt;I have a outbound flow that gets data written by App, mem and cards api. cards and mem api is writing logs into applog but App is writing logs in syslog.&lt;/P&gt;

&lt;P&gt;In my data model I have sourcetype=app_log as the source type. So in case of all flows except app I am getting write splunk dashboard report but for application I am not getting any data.&lt;/P&gt;

&lt;P&gt;So I want to add a condition in data model "constraint" section like when api is applications then sourcetype=app_log OR sourcetype=sys_log else sourcetype=app_log&lt;/P&gt;

&lt;P&gt;Can anyone assist me how to do this in splunk?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 12:12:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-to-add-condition-in-splunk-data-model-constraint/m-p/208057#M21546</guid>
      <dc:creator>tejaswiniul</dc:creator>
      <dc:date>2020-09-29T12:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to add condition in splunk data model constraint</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-to-add-condition-in-splunk-data-model-constraint/m-p/208058#M21547</link>
      <description>&lt;P&gt;In order for this to work, you must be able to identify the syslog data that came from the App. I will assume that the &lt;CODE&gt;source&lt;/CODE&gt; field is different for syslog data from App, in contrast to all other syslog data. You might be able to use "host" instead of source, if the only syslog data from that host is from the App&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(source="the/source/info/for/the/syslog/for/the/app"  sourcetype=sys_log ) OR sourcetype=app_log
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 01 Jan 2017 17:58:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-to-add-condition-in-splunk-data-model-constraint/m-p/208058#M21547</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2017-01-01T17:58:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to add condition in splunk data model constraint</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-to-add-condition-in-splunk-data-model-constraint/m-p/208059#M21548</link>
      <description>&lt;P&gt;Thanks Lhuinn &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2017 06:01:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-to-add-condition-in-splunk-data-model-constraint/m-p/208059#M21548</guid>
      <dc:creator>tejaswiniul</dc:creator>
      <dc:date>2017-01-06T06:01:41Z</dc:date>
    </item>
  </channel>
</rss>

