<?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: DB Connect tail question in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/DB-Connect-tail-question/m-p/144442#M185088</link>
    <description>&lt;P&gt;It would be easier for us to assist you if you open a support case.  Without seeing your data, it will be difficult.  If you want help here, can you share what some rows in your table look like?&lt;/P&gt;</description>
    <pubDate>Mon, 10 Feb 2014 17:25:15 GMT</pubDate>
    <dc:creator>araitz</dc:creator>
    <dc:date>2014-02-10T17:25:15Z</dc:date>
    <item>
      <title>DB Connect tail question</title>
      <link>https://community.splunk.com/t5/Splunk-Search/DB-Connect-tail-question/m-p/144441#M185087</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;

&lt;P&gt;This is my DB tail config which I am trying to get the data from. But I get few errors in the dbx log. I guess I am making a mistake in placing the rising_column value. Any help would be great.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[dbmon-tail://test/test1]
output.format = kv
output.timestamp = 1
output.timestamp.column = change_time
output.timestamp.format = s ***(The time is epcch time . Eg:1391446921.000)***
query = SELECT t.change_time ,t.create_time , t.tn , t.title , q.name , u.login , ts.name FROM ticket t, queue q, users u, ticket_state ts where t.queue_id = q.id and t.user_id = u.id and t.ticket_state_id = ts.id {{AND $rising_column$ &amp;gt; ?}} order by tn
sourcetype = test_new
tail.rising.column = change_time
interval = auto
table = xxxx
disabled = 0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The data looks like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    change_time     create_time     tn  title   name    login
1   1391446921.000  1386634163.000  ABC AAA ccc 12345
2   1391446921.000  1386634165.000  ABC AAA ccc 12345
3   1391446921.000  1386634167.000  ABC AAA ccc 12345
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 10 Feb 2014 16:57:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/DB-Connect-tail-question/m-p/144441#M185087</guid>
      <dc:creator>theouhuios</dc:creator>
      <dc:date>2014-02-10T16:57:50Z</dc:date>
    </item>
    <item>
      <title>Re: DB Connect tail question</title>
      <link>https://community.splunk.com/t5/Splunk-Search/DB-Connect-tail-question/m-p/144442#M185088</link>
      <description>&lt;P&gt;It would be easier for us to assist you if you open a support case.  Without seeing your data, it will be difficult.  If you want help here, can you share what some rows in your table look like?&lt;/P&gt;</description>
      <pubDate>Mon, 10 Feb 2014 17:25:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/DB-Connect-tail-question/m-p/144442#M185088</guid>
      <dc:creator>araitz</dc:creator>
      <dc:date>2014-02-10T17:25:15Z</dc:date>
    </item>
    <item>
      <title>Re: DB Connect tail question</title>
      <link>https://community.splunk.com/t5/Splunk-Search/DB-Connect-tail-question/m-p/144443#M185089</link>
      <description>&lt;P&gt;What errors are you getting in the log?&lt;/P&gt;</description>
      <pubDate>Mon, 10 Feb 2014 17:27:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/DB-Connect-tail-question/m-p/144443#M185089</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2014-02-10T17:27:17Z</dc:date>
    </item>
    <item>
      <title>Re: DB Connect tail question</title>
      <link>https://community.splunk.com/t5/Splunk-Search/DB-Connect-tail-question/m-p/144444#M185090</link>
      <description>&lt;P&gt;The error which I get is &lt;/P&gt;

&lt;P&gt;2014-02-10 13:34:22.116 dbx481:ERROR:TailDatabaseMonitor - Error while executing database monitor: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Column 'change_time' in where clause is ambiguous&lt;BR /&gt;
com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Column 'change_time' in where clause is ambiguous&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 15:50:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/DB-Connect-tail-question/m-p/144444#M185090</guid>
      <dc:creator>theouhuios</dc:creator>
      <dc:date>2020-09-28T15:50:53Z</dc:date>
    </item>
    <item>
      <title>Re: DB Connect tail question</title>
      <link>https://community.splunk.com/t5/Splunk-Search/DB-Connect-tail-question/m-p/144445#M185091</link>
      <description>&lt;P&gt;@araitz - I was planning to do that after trying to see if I did any mistake on my end. I have updated the question with an example of how the data looks like.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Feb 2014 18:43:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/DB-Connect-tail-question/m-p/144445#M185091</guid>
      <dc:creator>theouhuios</dc:creator>
      <dc:date>2014-02-10T18:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: DB Connect tail question</title>
      <link>https://community.splunk.com/t5/Splunk-Search/DB-Connect-tail-question/m-p/144446#M185092</link>
      <description>&lt;P&gt;from what the error I saw "tail.rising.column = change_time", Column 'change_time' is ambiguous, you should use qualified column name such as ticket.change_time instead.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 15:51:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/DB-Connect-tail-question/m-p/144446#M185092</guid>
      <dc:creator>btsay_splunk</dc:creator>
      <dc:date>2020-09-28T15:51:18Z</dc:date>
    </item>
    <item>
      <title>Re: DB Connect tail question</title>
      <link>https://community.splunk.com/t5/Splunk-Search/DB-Connect-tail-question/m-p/144447#M185093</link>
      <description>&lt;P&gt;It works now. Was giving error even with ticket.change_time. Somehow splunk isn't handling mysql DB Connections as good as what it does with oracle. Anyways, I changed the $rising_column$ value to ticket.$rising_column$ with rising_column as change_time.&lt;/P&gt;

&lt;P&gt;I had to do this because splunk wasn't listing the column name as ticket/t.change_time. Is was listing it only as change_time ( Never saw this issue when trying to connect to oracle Db).&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 15:51:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/DB-Connect-tail-question/m-p/144447#M185093</guid>
      <dc:creator>theouhuios</dc:creator>
      <dc:date>2020-09-28T15:51:52Z</dc:date>
    </item>
    <item>
      <title>Re: DB Connect tail question</title>
      <link>https://community.splunk.com/t5/Splunk-Search/DB-Connect-tail-question/m-p/144448#M185094</link>
      <description>&lt;P&gt;Also note that you don't need to use the &lt;CODE&gt;$rising_column$&lt;/CODE&gt; placeholder necessarily. You can also use specify the plain/qualified column name in the query. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SELECT t.change_time ,t.create_time , t.tn , t.title , q.name , u.login , ts.name FROM ticket t, queue q, users u, ticket_state ts where t.queue_id = q.id and t.user_id = u.id and t.ticket_state_id = ts.id {{AND ticket.change_time &amp;gt; ?}} order by tn
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The only thing that is important is that the name of rising_column matches what the database returns in the query results.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2014 16:34:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/DB-Connect-tail-question/m-p/144448#M185094</guid>
      <dc:creator>ziegfried</dc:creator>
      <dc:date>2014-02-11T16:34:21Z</dc:date>
    </item>
    <item>
      <title>Re: DB Connect tail question</title>
      <link>https://community.splunk.com/t5/Splunk-Search/DB-Connect-tail-question/m-p/144449#M185095</link>
      <description>&lt;P&gt;Thanks @ziegfried. Good to know about that.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2014 16:39:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/DB-Connect-tail-question/m-p/144449#M185095</guid>
      <dc:creator>theouhuios</dc:creator>
      <dc:date>2014-02-11T16:39:13Z</dc:date>
    </item>
    <item>
      <title>Re: DB Connect tail question</title>
      <link>https://community.splunk.com/t5/Splunk-Search/DB-Connect-tail-question/m-p/144450#M185096</link>
      <description>&lt;P&gt;@Ziegfried: but is it possible to use  {{AND ticket.change_time &amp;gt; ?}} also from the DBX GUI in SQL Query window? or does this not work?&lt;/P&gt;

&lt;P&gt;i always get an Error when trying to save &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Do I have to edit the DBTail Config instead?? &lt;/P&gt;

&lt;P&gt;get the error &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"12-23-2014 10:03:22.622 +0100 ERROR AdminManagerExternal - Unable to xml-parse the following data: Failed to validate: com.splunk.config.SplunkConfigurationException: Error validating dbmonTail for monitor=dbmon-tail://xxxxxx...  See splunkd.log for full data.
tail: „ERROR:“ kann nicht zum Lesen geöffnet werden: Datei oder Verzeichnis nicht gefunden
tail: „column“ kann nicht zum Lesen geöffnet werden: Datei oder Verzeichnis nicht gefunden
tail: „reference“ kann nicht zum Lesen geöffnet werden: Datei oder Verzeichnis nicht gefunden
tail: „oid“ kann nicht zum Lesen geöffnet werden: Datei oder Verzeichnis nicht gefunden
tail: „is“ kann nicht zum Lesen geöffnet werden: Datei oder Verzeichnis nicht gefunden
tail: „ambiguous“ kann nicht zum Lesen geöffnet werden: Datei oder Verzeichnis nicht gefunden
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;12-23-2014 10:24:55.720 +0100 ERROR AdminManagerExternal - Received malformed XML from external handler:\nFailed to validate: com.splunk.config.SplunkConfigurationException: Error validating dbmonTail for monitor=dbmon-tail://xxxx/test__sqlQuery: [xxx__sqlQuery] Invalid query "select \r\n      scheduled_job_run.started_at,\r\n    job_run_stat.oid,\r\n    ......
.......
from 
        job_run_stat,
        scheduled_job_run
where 
...
{{AND job_run_stat.oid &amp;gt; ?}}\r\n" without proper {{ ... $rising_column$ &amp;gt; ?}} pattern! with query = \n&amp;lt;eai_error&amp;gt;&amp;lt;recognized&amp;gt;false&amp;lt;/recognized&amp;gt;&amp;lt;type&amp;gt;&amp;amp;lt;class 'spp.java.bridge.JavaBridgeError'&amp;amp;gt;&amp;lt;/type&amp;gt;&amp;lt;message&amp;gt;Command com.splunk.dbx.monitor.DatabaseMonitorValidator returned status code 17&amp;lt;/message&amp;gt;&amp;lt;stacktrace&amp;gt;Traceback (most recent call last):\n  File "/opt/splunk/lib/python2.7/site-packages/splunk/admin.py", line 70, in init\n    hand.execute(info)\n  File "/opt/splunk/lib/python2.7/site-packages/splunk/admin.py", line 528, in execute\n    if self.requestedAction == ACTION_EDIT:     self.handleEdit(confInfo)\n  File "/opt/splunk/etc/apps/dbx/bin/spp/config.py", line 238, in handleEdit\n    self.handleModification("edit", output)\n  File "/opt/splunk/etc/apps/dbx/bin/spp/config.py", line 218, in handleModification\n    id, props = self.process_modification(id, props, type=type, output=output)\n  File "/opt/splunk/etc/apps/dbx/bin/rest_handler_dbmon.py", line 95, in process_modification\n    self.validateConfig(stanza, props)\n  File "/opt/splunk/etc/apps/dbx/bin/rest_handler_dbmon.py", line 126, in validateConfig\n    executeBridgeCommand("com.splunk.dbx.monitor.DatabaseMonitorValidator", args, checkStatus=True)\n  File "/opt/splunk/etc/apps/dbx/bin/spp/java/bridge.py", line 182, in executeBridgeCommand\n    raise JavaBridgeError("Command %s returned status code %s" % (cmd, ret))\nJavaBridgeError: Command com.splunk.dbx.monitor.DatabaseMonitorValidator returned status code 17\n&amp;lt;/stacktrace&amp;gt;&amp;lt;/eai_error&amp;gt;\n
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;THX&lt;/P&gt;</description>
      <pubDate>Tue, 23 Dec 2014 09:02:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/DB-Connect-tail-question/m-p/144450#M185096</guid>
      <dc:creator>johann_brajer</dc:creator>
      <dc:date>2014-12-23T09:02:12Z</dc:date>
    </item>
  </channel>
</rss>

