<?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 Re: DBX - Missing placeholder for condition! in Monitoring Splunk</title>
    <link>https://community.splunk.com/t5/Monitoring-Splunk/DBX-Missing-placeholder-for-condition/m-p/80810#M7282</link>
    <description>&lt;P&gt;Have you tried&lt;/P&gt;

&lt;P&gt;where a.id_metrica=b.id_metrica and a.metrica='NUM_PED_PROGRESS' &lt;BR /&gt;
{{AND $rising_column$ &amp;gt; 42813607}}&lt;/P&gt;

&lt;P&gt;Note: $rising_column$ is the placeholder and will be automatically replaced with whatever you enter into the Rising Column field.&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 14:31:18 GMT</pubDate>
    <dc:creator>lukejadamec</dc:creator>
    <dc:date>2020-09-28T14:31:18Z</dc:date>
    <item>
      <title>DBX - Missing placeholder for condition!</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/DBX-Missing-placeholder-for-condition/m-p/80807#M7279</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I'm trying to configure a monitor (tail) and i've set the following query:  &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;select to_char(b.data_reg,'rrrr-mm-dd hh24:mi:ss') DATA_HORA, a.dominio,      a.cliente,a.entidade, b.valor NUM_PED_PROGRESS from carateristicas_metricas a, metricas b where     b.id&amp;gt;42813607 and a.id_metrica=b.id_metrica and a.metrica='NUM_PED_PROGRESS' order by 1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;From the manual,&lt;BR /&gt;&lt;BR /&gt;
    "Use a specific SQL query to pull the data in: select the Configure&lt;BR /&gt;
advanced Database lookup settings checkbox, then define a SQL query&lt;BR /&gt;
and use the $input_field$ as a placeholder for each input field."  &lt;/P&gt;

&lt;P&gt;I've set the Rising Column as "b.id"&lt;/P&gt;

&lt;P&gt;but when I try to run the monitor I'm getting the following error:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;dbx3358:ERROR:TailDatabaseMonitor - Configuration Error: Invalid query specified! Missing placeholder for condition!
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;What argument should I change to obtain the correct result ?&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jan 2013 14:53:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/DBX-Missing-placeholder-for-condition/m-p/80807#M7279</guid>
      <dc:creator>preis4</dc:creator>
      <dc:date>2013-01-08T14:53:15Z</dc:date>
    </item>
    <item>
      <title>Re: DBX - Missing placeholder for condition!</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/DBX-Missing-placeholder-for-condition/m-p/80808#M7280</link>
      <description>&lt;P&gt;Hey,&lt;BR /&gt;
I was just looking at the same issue.&lt;/P&gt;

&lt;P&gt;Theres a hint just below the custom sql query input box&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;"You can specify the SQL query that is executed against the database yourself. For information on how to specify such a query, see Splunk DB Connect documentation. Example: &lt;BR /&gt;
SELECT * FROM my_table {{WHERE $rising_column$ &amp;gt; ?}}"&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;Try replacing "b.id&amp;gt;42813607" in your query with $rising_column$ &amp;gt; ?&lt;/P&gt;

&lt;P&gt;Now Im not sure about the importance of the curly braces though&lt;/P&gt;

&lt;P&gt;Cheers&lt;BR /&gt;
Mat&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:05:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/DBX-Missing-placeholder-for-condition/m-p/80808#M7280</guid>
      <dc:creator>mbenwell</dc:creator>
      <dc:date>2020-09-28T13:05:23Z</dc:date>
    </item>
    <item>
      <title>Re: DBX - Missing placeholder for condition!</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/DBX-Missing-placeholder-for-condition/m-p/80809#M7281</link>
      <description>&lt;P&gt;the curly braces are needed!&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2013 14:03:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/DBX-Missing-placeholder-for-condition/m-p/80809#M7281</guid>
      <dc:creator>florianhachenbe</dc:creator>
      <dc:date>2013-07-30T14:03:52Z</dc:date>
    </item>
    <item>
      <title>Re: DBX - Missing placeholder for condition!</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/DBX-Missing-placeholder-for-condition/m-p/80810#M7282</link>
      <description>&lt;P&gt;Have you tried&lt;/P&gt;

&lt;P&gt;where a.id_metrica=b.id_metrica and a.metrica='NUM_PED_PROGRESS' &lt;BR /&gt;
{{AND $rising_column$ &amp;gt; 42813607}}&lt;/P&gt;

&lt;P&gt;Note: $rising_column$ is the placeholder and will be automatically replaced with whatever you enter into the Rising Column field.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:31:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/DBX-Missing-placeholder-for-condition/m-p/80810#M7282</guid>
      <dc:creator>lukejadamec</dc:creator>
      <dc:date>2020-09-28T14:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: DBX - Missing placeholder for condition!</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/DBX-Missing-placeholder-for-condition/m-p/80811#M7283</link>
      <description>&lt;P&gt;This works {{AND $rising_column$ &amp;gt; ?}} with MSSQL&lt;BR /&gt;
The ?  references the rising_column field you set outside the query in "Tail Input settings".&lt;BR /&gt;
After the first parse where the entire output of the query is pulled into Splunk.&lt;BR /&gt;
The tail option kicks in and only pulls in new data based on the rising column.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 17:19:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/DBX-Missing-placeholder-for-condition/m-p/80811#M7283</guid>
      <dc:creator>briansutherland</dc:creator>
      <dc:date>2020-09-28T17:19:52Z</dc:date>
    </item>
  </channel>
</rss>

