<?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: DBTail issue. in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/DBTail-issue/m-p/68722#M22453</link>
    <description>&lt;P&gt;It doesn't give any error but it also doesn't give any results for it.&lt;/P&gt;</description>
    <pubDate>Fri, 20 Sep 2013 15:05:08 GMT</pubDate>
    <dc:creator>theouhuios</dc:creator>
    <dc:date>2013-09-20T15:05:08Z</dc:date>
    <item>
      <title>DBTail issue.</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/DBTail-issue/m-p/68716#M22447</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;

&lt;P&gt;I am trying to us dbtail to get a query working and its not working. The rising column name is modifiedTime. I dont know where the mistake is. Any help please.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  SELECT to_char(I.SYSMODTIME,'MM/DD/YYYY HH24:MI:SS') as "modifiedTime",to_char(I.OPEN_TIME,'MM/DD/YYYY HH24:MI:SS') as "createdTime", xxxxx  where A."NAME" = I.ASSIGNMENT and P.CONTACT_NAME = A.WDMANAGERNAME and I.LOGICAL_NAME = C.LOGICAL_NAME WHERE $rising_column$ &amp;lt; dateadd(minute,-1,getdate()) {{AND $rising_column$ &amp;gt; ?}} ORDER BY $rising_column$
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Adding the configs for this to make sure that I am doing it the right way.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  [dbmon-tail://xxxx/xxx]
    output.format = kv
    output.timestamp = true
    output.timestamp.column = modifiedTime
    sourcetype =xxxx
    query = xxx
    tail.rising.column = modifiedTime
    index = itsm
    interval = 15m
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I see that there is error in the query&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2013-09-19 18:41:00.706 dbx8500:ERROR:TailDatabaseMonitor - Configuration Error: Invalid query specified! Missing placeholder for condition!
2013-09-19 18:41:00.706 dbx8500:INFO:TailDatabaseMonitor - Database monitor=[dbmon-tail://SM:SMPRD93/incident] finished with status=false resultCount=0 in duration=9 ms
2013-09-19 18:41:00.706 dbx8500:INFO:ExecutionContext - Execution finished in duration=9 ms
2013-09-19 18:41:00.707 monsch1:INFO:Scheduler - Execution of input=[dbmon-tail://SM:SMPRD93/incident] finished in duration=9 ms with resultCount=0 success=false continueMonitoring=false
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 20 Sep 2013 00:17:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/DBTail-issue/m-p/68716#M22447</guid>
      <dc:creator>theouhuios</dc:creator>
      <dc:date>2013-09-20T00:17:28Z</dc:date>
    </item>
    <item>
      <title>Re: DBTail issue.</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/DBTail-issue/m-p/68717#M22448</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;what's the SQL data type for the modifiedTime column?&lt;/P&gt;</description>
      <pubDate>Fri, 20 Sep 2013 00:54:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/DBTail-issue/m-p/68717#M22448</guid>
      <dc:creator>jcoates_splunk</dc:creator>
      <dc:date>2013-09-20T00:54:44Z</dc:date>
    </item>
    <item>
      <title>Re: DBTail issue.</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/DBTail-issue/m-p/68718#M22449</link>
      <description>&lt;P&gt;I am sorry, I am not that good with SQL. I didn't get your question actually. Can you please rephrase that.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Sep 2013 01:23:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/DBTail-issue/m-p/68718#M22449</guid>
      <dc:creator>theouhuios</dc:creator>
      <dc:date>2013-09-20T01:23:05Z</dc:date>
    </item>
    <item>
      <title>Re: DBTail issue.</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/DBTail-issue/m-p/68719#M22450</link>
      <description>&lt;P&gt;Hi, in SQL each column has a type. if your modifiedTime column is actually not a datetime type, your dateadd function won't work.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Sep 2013 01:49:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/DBTail-issue/m-p/68719#M22450</guid>
      <dc:creator>jcoates_splunk</dc:creator>
      <dc:date>2013-09-20T01:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: DBTail issue.</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/DBTail-issue/m-p/68720#M22451</link>
      <description>&lt;P&gt;It is a Datetim type. As you can see from the full query its being renamed to modifiedTime. Do I need to use the default field name for that to work?&lt;/P&gt;</description>
      <pubDate>Fri, 20 Sep 2013 02:11:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/DBTail-issue/m-p/68720#M22451</guid>
      <dc:creator>theouhuios</dc:creator>
      <dc:date>2013-09-20T02:11:35Z</dc:date>
    </item>
    <item>
      <title>Re: DBTail issue.</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/DBTail-issue/m-p/68721#M22452</link>
      <description>&lt;P&gt;The query and input are not the same.&lt;BR /&gt;
Try the input without the ORDER BY statement, and post the error if any from the splunk\var\log\splunk\dbx.log&lt;/P&gt;</description>
      <pubDate>Fri, 20 Sep 2013 02:30:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/DBTail-issue/m-p/68721#M22452</guid>
      <dc:creator>lukejadamec</dc:creator>
      <dc:date>2013-09-20T02:30:52Z</dc:date>
    </item>
    <item>
      <title>Re: DBTail issue.</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/DBTail-issue/m-p/68722#M22453</link>
      <description>&lt;P&gt;It doesn't give any error but it also doesn't give any results for it.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Sep 2013 15:05:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/DBTail-issue/m-p/68722#M22453</guid>
      <dc:creator>theouhuios</dc:creator>
      <dc:date>2013-09-20T15:05:08Z</dc:date>
    </item>
    <item>
      <title>Re: DBTail issue.</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/DBTail-issue/m-p/68723#M22454</link>
      <description>&lt;P&gt;When you restart the db input from db connect, what messages are you seeing in the dbx log?  You should also check the splunkd.log&lt;/P&gt;</description>
      <pubDate>Fri, 20 Sep 2013 15:07:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/DBTail-issue/m-p/68723#M22454</guid>
      <dc:creator>lukejadamec</dc:creator>
      <dc:date>2013-09-20T15:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: DBTail issue.</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/DBTail-issue/m-p/68724#M22455</link>
      <description>&lt;P&gt;There is a Invalid query error.Added the update for it.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Sep 2013 15:22:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/DBTail-issue/m-p/68724#M22455</guid>
      <dc:creator>theouhuios</dc:creator>
      <dc:date>2013-09-20T15:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: DBTail issue.</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/DBTail-issue/m-p/68725#M22456</link>
      <description>&lt;P&gt;If you're query is still the same as shown above, then I have some recommendations:&lt;BR /&gt;
1) don't use $rising_column$ in your query except at the end.&lt;BR /&gt;
2) the last line should read exactly:&lt;BR /&gt;
{{WHERE $rising_column$ &amp;gt; ?}}&lt;BR /&gt;
3) Once you get it to work, then try to modify it - start simple because then it is easier to see what is breaking it.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:49:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/DBTail-issue/m-p/68725#M22456</guid>
      <dc:creator>lukejadamec</dc:creator>
      <dc:date>2020-09-28T14:49:24Z</dc:date>
    </item>
  </channel>
</rss>

