<?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: Splunk DB Connect - Tail input not updating in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Splunk-DB-Connect-Tail-input-not-updating/m-p/101191#M182832</link>
    <description>&lt;P&gt;What is the data type of PROCESS_ID in the database? You can see this from Splunk by using dbinfo&lt;/P&gt;</description>
    <pubDate>Mon, 22 Apr 2013 17:47:59 GMT</pubDate>
    <dc:creator>Dan</dc:creator>
    <dc:date>2013-04-22T17:47:59Z</dc:date>
    <item>
      <title>Splunk DB Connect - Tail input not updating</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-DB-Connect-Tail-input-not-updating/m-p/101178#M182819</link>
      <description>&lt;P&gt;I'm connecting to an Oracle database using a tail input.  I've gotten it all working, however, splunk shows that the last update is yesterday afternoon when I initially set it up.  I know there are new rows out there.  In looking at the debug log, I found this:&lt;/P&gt;

&lt;P&gt;monsch1:INFO:Scheduler - Execution of input=[dbmon-tail://Scap Monitor/Scap Tail monitor with convert] finished in duration=32 ms with resultCount=0 success=true continueMonitoring=true&lt;/P&gt;

&lt;P&gt;So it looks like it is checking for updates but not finding any?  I'm using a PROCESS_ID column as my rising column - this column is updated a primary sequential key.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2013 12:57:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-DB-Connect-Tail-input-not-updating/m-p/101178#M182819</guid>
      <dc:creator>ezempel</dc:creator>
      <dc:date>2013-04-19T12:57:15Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB Connect - Tail input not updating</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-DB-Connect-Tail-input-not-updating/m-p/101179#M182820</link>
      <description>&lt;P&gt;Can you post your dbmon-tail stanza and your state.xml file, which is in $SPLUNK_DB/persistentstorage/dbx. Each input has it's own directory, which is a hash of it's name (ie. a 32 character long hex string). This directory typically contains 2 files:&lt;/P&gt;

&lt;P&gt;manifest.properties: contains meta-information, such as the name of the input&lt;BR /&gt;
state.xml: contains the actual state in XML format&lt;/P&gt;

&lt;P&gt;This state file looks something like this:&lt;BR /&gt;
&lt;PRE&gt;&lt;BR /&gt;
&lt;LIST&gt;&lt;BR /&gt;
  &lt;VALUE key="latest.record_update"&gt;&lt;BR /&gt;
    &lt;VALUE class="sql-timestamp"&gt;2012-12-07 04:22:25.703&lt;/VALUE&gt;&lt;BR /&gt;
  &lt;/VALUE&gt;&lt;BR /&gt;
&lt;/LIST&gt;&lt;BR /&gt;
&lt;/PRE&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2013 18:29:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-DB-Connect-Tail-input-not-updating/m-p/101179#M182820</guid>
      <dc:creator>Dan</dc:creator>
      <dc:date>2013-04-19T18:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB Connect - Tail input not updating</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-DB-Connect-Tail-input-not-updating/m-p/101180#M182821</link>
      <description>&lt;P&gt;[dbmon-tail://Scap Monitor/Scap Tail monitor with convert]&lt;BR /&gt;
    host = host-113.subnet-110.med.umich.edu&lt;BR /&gt;
    index = default&lt;BR /&gt;
    interval = auto&lt;BR /&gt;
    output.format = kv&lt;BR /&gt;
    output.timestamp = 0&lt;BR /&gt;
    output.timestamp.column = START_DT&lt;BR /&gt;
    output.timestamp.format = Dy DD-Mon-YYYY HH24:MI:SS&lt;BR /&gt;
    query = select process_ID, process_name, to_char(start_dt, 'Dy DD-Mon-YYYY HH24:MI:SS') AS starttime, to_char(end_dt, 'Dy DD-Mon-YYYY HH24:MI:SS') AS endtime, STATUS, mesg from AIS_PROCESS_LOG {{WHERE $rising_column$ &amp;gt; ?}}&lt;BR /&gt;
    table = AIS_PROCESS_LOG&lt;BR /&gt;
    tail.rising.column = PROCESS_ID&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:46:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-DB-Connect-Tail-input-not-updating/m-p/101180#M182821</guid>
      <dc:creator>ezempel</dc:creator>
      <dc:date>2020-09-28T13:46:01Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB Connect - Tail input not updating</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-DB-Connect-Tail-input-not-updating/m-p/101181#M182822</link>
      <description>&lt;P&gt;state.xml:&lt;/P&gt;

&lt;P&gt;&lt;LIST&gt;&lt;BR /&gt;
  &lt;VALUE key="last.startup.time"&gt;&lt;BR /&gt;
    &lt;VALUE class="long"&gt;1366374395757&lt;/VALUE&gt;&lt;BR /&gt;
  &lt;/VALUE&gt;&lt;BR /&gt;
&lt;/LIST&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2013 18:41:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-DB-Connect-Tail-input-not-updating/m-p/101181#M182822</guid>
      <dc:creator>ezempel</dc:creator>
      <dc:date>2013-04-19T18:41:40Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB Connect - Tail input not updating</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-DB-Connect-Tail-input-not-updating/m-p/101182#M182823</link>
      <description>&lt;P&gt;Just to provide a little contextual information here - the table I'm pulling from uses an Oracle DATE field for START_DT and END_DT.  If I pull that into splunk as is, I only get an epoch time value for the date but no time information (in other words, all events show the correct date but display a time of 12:00 am).  By converting it to a character field I can get the full date, hours, minutes, and seconds.  Not sure why that is, seems to be a function specific to oracle.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:46:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-DB-Connect-Tail-input-not-updating/m-p/101182#M182823</guid>
      <dc:creator>ezempel</dc:creator>
      <dc:date>2020-09-28T13:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB Connect - Tail input not updating</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-DB-Connect-Tail-input-not-updating/m-p/101183#M182824</link>
      <description>&lt;P&gt;You might consider making note of the settings and deleting the monitor and re-creating it, I have had to do that in some instances.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2013 18:47:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-DB-Connect-Tail-input-not-updating/m-p/101183#M182824</guid>
      <dc:creator>bigtyma</dc:creator>
      <dc:date>2013-04-19T18:47:55Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB Connect - Tail input not updating</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-DB-Connect-Tail-input-not-updating/m-p/101184#M182825</link>
      <description>&lt;P&gt;Yeah, I've done that a few times already.  This is the 3rd or 4th attempt.  It pulls in all the data up the point in time where I create the new input, but doesn't update it after that.  It behaves more like a one-time dump than a tail.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2013 18:51:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-DB-Connect-Tail-input-not-updating/m-p/101184#M182825</guid>
      <dc:creator>ezempel</dc:creator>
      <dc:date>2013-04-19T18:51:53Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB Connect - Tail input not updating</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-DB-Connect-Tail-input-not-updating/m-p/101185#M182826</link>
      <description>&lt;P&gt;Ok here is the state.xml file associated with the input (rather than the global one I posted earlier): &lt;/P&gt;

&lt;P&gt;&lt;LIST&gt;&lt;BR /&gt;
  &lt;VALUE key="latest.PROCESS_ID"&gt;&lt;BR /&gt;
    &lt;VALUE class="string"&gt;99999&lt;/VALUE&gt;&lt;BR /&gt;
  &lt;/VALUE&gt;&lt;BR /&gt;
&lt;/LIST&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2013 19:34:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-DB-Connect-Tail-input-not-updating/m-p/101185#M182826</guid>
      <dc:creator>ezempel</dc:creator>
      <dc:date>2013-04-19T19:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB Connect - Tail input not updating</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-DB-Connect-Tail-input-not-updating/m-p/101186#M182827</link>
      <description>&lt;P&gt;Interesting... there are more 100k records in this table - somewhere around 103,000&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2013 19:36:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-DB-Connect-Tail-input-not-updating/m-p/101186#M182827</guid>
      <dc:creator>ezempel</dc:creator>
      <dc:date>2013-04-19T19:36:10Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB Connect - Tail input not updating</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-DB-Connect-Tail-input-not-updating/m-p/101187#M182828</link>
      <description>&lt;P&gt;Perhaps your rising column does not increment in an orderly way. Looks like in the table there is a row with process_id 99999. Do the most recent entries have process_id higher than that, or lower than that?&lt;/P&gt;

&lt;P&gt;You might consider using end_dt as the rising column&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:46:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-DB-Connect-Tail-input-not-updating/m-p/101187#M182828</guid>
      <dc:creator>Dan</dc:creator>
      <dc:date>2020-09-28T13:46:09Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB Connect - Tail input not updating</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-DB-Connect-Tail-input-not-updating/m-p/101188#M182829</link>
      <description>&lt;P&gt;I've done some more playing around with this today.  I believe this is a bug at this point.  &lt;/P&gt;

&lt;P&gt;I do have process_ids higher than 99999.  I manually edited state.xml to set latest.process_id = 103677 Then I watched the dbx_debug log.&lt;/P&gt;

&lt;P&gt;It starts out with: &lt;BR /&gt;
2013-04-22 12:02:28.378 dbx5947:INFO:TailDatabaseMonitor - Applying latest tail.rising.column value=103677&lt;/P&gt;

&lt;P&gt;Then processes, but stops at 99999 again.  After processing, looking at state.xml shows 99999 again.  So, is there a limit of 100k rows or is this a bug?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:46:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-DB-Connect-Tail-input-not-updating/m-p/101188#M182829</guid>
      <dc:creator>ezempel</dc:creator>
      <dc:date>2020-09-28T13:46:33Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB Connect - Tail input not updating</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-DB-Connect-Tail-input-not-updating/m-p/101189#M182830</link>
      <description>&lt;P&gt;Lets check one more thing. Sometimes changes in the manager UI create duplicate configuration files in different app contexts, and these configs can conflict. The fastest way to check this is to use the command line: &lt;CODE&gt;$SPLUNK_HOME/bin/splunk cmd btool --debug-print=app inputs list | grep dbmon-tail&lt;/CODE&gt; &lt;BR /&gt;
Output should look like:&lt;BR /&gt;
&lt;PRE&gt;&lt;BR /&gt;
dbx        [dbmon-tail://cmdb/cmdb_audit_log]&lt;BR /&gt;
search     [dbmon-tail://cmdb/cmdb_audit_log]&lt;BR /&gt;
&lt;/PRE&gt;&lt;BR /&gt;
Check the output for duplicate entries like in the above.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:46:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-DB-Connect-Tail-input-not-updating/m-p/101189#M182830</guid>
      <dc:creator>Dan</dc:creator>
      <dc:date>2020-09-28T13:46:36Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB Connect - Tail input not updating</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-DB-Connect-Tail-input-not-updating/m-p/101190#M182831</link>
      <description>&lt;P&gt;Thanks for the suggestion, but unfortunately no duplicates &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2013 17:34:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-DB-Connect-Tail-input-not-updating/m-p/101190#M182831</guid>
      <dc:creator>ezempel</dc:creator>
      <dc:date>2013-04-22T17:34:28Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB Connect - Tail input not updating</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-DB-Connect-Tail-input-not-updating/m-p/101191#M182832</link>
      <description>&lt;P&gt;What is the data type of PROCESS_ID in the database? You can see this from Splunk by using dbinfo&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2013 17:47:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-DB-Connect-Tail-input-not-updating/m-p/101191#M182832</guid>
      <dc:creator>Dan</dc:creator>
      <dc:date>2013-04-22T17:47:59Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB Connect - Tail input not updating</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-DB-Connect-Tail-input-not-updating/m-p/101192#M182833</link>
      <description>&lt;P&gt;I think I'm narrowing in on an answer.  I'm having difficulty using START_DT or END_DT as a rising column.  These are Oracle date fields, which need to be converted to a string in order to get the time information out (otherwise it is displayed as DD-MON-YY - see &lt;A href="http://infolab.stanford.edu/%7Eullman/fcdb/oracle/or-time.html" target="_blank"&gt;http://infolab.stanford.edu/~ullman/fcdb/oracle/or-time.html&lt;/A&gt;)  This causes splunk to loop and keep pulling in the same data over and over again for the most recent day.&lt;/P&gt;

&lt;P&gt;To get around this, I do a to_char conversion and display as column "starttime".  If I use this, I get a one time dump but subsequent checks give ORA-904 error&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:46:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-DB-Connect-Tail-input-not-updating/m-p/101192#M182833</guid>
      <dc:creator>ezempel</dc:creator>
      <dc:date>2020-09-28T13:46:39Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB Connect - Tail input not updating</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-DB-Connect-Tail-input-not-updating/m-p/101193#M182834</link>
      <description>&lt;P&gt;I managed to get around this, but it may be more of a workaround than fix.  I modified my query to only look at events with a PROCESS_ID greater than 100000.  This results in a smaller set that splunk doesn't have issues with.  I believe this is a bug - splunk seems to only be able to process 99999 events at a time.  The working stanza is as follows:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[dbmon-tail://Scap Monitor/Scap Tail monitor with convert]
    host = host-113.subnet-110.med.umich.edu
    index = default
    interval = auto
    output.format = kv
    output.timestamp = 0
    output.timestamp.column = START_DT
    output.timestamp.format = Dy DD-Mon-YYYY HH24:MI:SS
    query = select process_ID, process_name, to_char(start_dt, 'Dy DD-Mon-YYYY HH24:MI:SS') AS starttime, to_char(end_dt, 'Dy DD-Mon-YYYY HH24:MI:SS') AS endtime, STATUS, mesg from AIS_PROCESS_LOG {{WHERE $rising_column$ &amp;gt; ?}} AND PROCESS_ID &amp;gt; 100000
    table = AIS_PROCESS_LOG
    tail.rising.column = PROCESS_ID
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 22 Apr 2013 19:22:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-DB-Connect-Tail-input-not-updating/m-p/101193#M182834</guid>
      <dc:creator>ezempel</dc:creator>
      <dc:date>2013-04-22T19:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB Connect - Tail input not updating</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-DB-Connect-Tail-input-not-updating/m-p/101194#M182835</link>
      <description>&lt;P&gt;One thing that may be complicating your debugging (it did for me) is that the 'rising column' value is stored in $SPLUNK_DB/persistentstorage/dbx/&lt;CRYPTIC_NUMBER&gt;/state.xml.  That state.xml file is not reset when you clean the index, or even if you delete and recreate the index.  If you don't manually go in and toss that file, dbx will refuse to index anything that has a rising column value lower than the number given in the state.xml.&lt;/CRYPTIC_NUMBER&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:46:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-DB-Connect-Tail-input-not-updating/m-p/101194#M182835</guid>
      <dc:creator>rettops</dc:creator>
      <dc:date>2020-09-28T13:46:52Z</dc:date>
    </item>
  </channel>
</rss>

