<?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: In what format should the rising_column be? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/In-what-format-should-the-rising-column-be/m-p/66933#M180453</link>
    <description>&lt;P&gt;Please provide more info about the settings you chose for the database input. Are you using a custom query?&lt;/P&gt;</description>
    <pubDate>Tue, 18 Jun 2013 17:36:04 GMT</pubDate>
    <dc:creator>ziegfried</dc:creator>
    <dc:date>2013-06-18T17:36:04Z</dc:date>
    <item>
      <title>In what format should the rising_column be?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/In-what-format-should-the-rising-column-be/m-p/66932#M180452</link>
      <description>&lt;P&gt;I'm using DB Connect to extract McAfee ePO events from a MS SQL database and I'm using an auto-increment field as the rising_column field to tail the database.  When I do that, I receive the following DB Connect error:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;2013-06-18 08:43:14.456 dbx9419:ERROR:TailDatabaseMonitor - Error while executing database monitor: java.sql.SQLException: Invalid column name 'event_id'.&lt;BR /&gt;
    java.sql.SQLException: Invalid column name 'event_id'.&lt;BR /&gt;
    at net.sourceforge.jtds.jdbc.SQLDiagnostic.addDiagnostic(SQLDiagnostic.java:372)&lt;BR /&gt;
        at net.sourceforge.jtds.jdbc.TdsCore.tdsErrorToken(TdsCore.java:2820)&lt;BR /&gt;
        at net.sourceforge.jtds.jdbc.TdsCore.nextToken(TdsCore.java:2258)&lt;BR /&gt;
        at net.sourceforge.jtds.jdbc.TdsCore.getMoreResults(TdsCore.java:632)&lt;BR /&gt;
        at net.sourceforge.jtds.jdbc.JtdsStatement.executeSQLQuery(JtdsStatement.java:477)&lt;BR /&gt;
        at net.sourceforge.jtds.jdbc.JtdsPreparedStatement.executeQuery(JtdsPreparedStatement.java:776)&lt;BR /&gt;
        at com.splunk.dbx.sql.Database.query(Database.java:203)&lt;BR /&gt;
        at com.splunk.dbx.monitor.impl.TailDatabaseMonitor.performMonitoring(TailDatabaseMonitor.java:113)&lt;BR /&gt;
        at com.splunk.dbx.monitor.DatabaseMonitorExecutor.executeMonitor(DatabaseMonitorExecutor.java:126)&lt;BR /&gt;
        at com.splunk.dbx.monitor.DatabaseMonitorExecutor.call(DatabaseMonitorExecutor.java:102)&lt;BR /&gt;
    at com.splunk.dbx.monitor.DatabaseMonitorExecutor.call(DatabaseMonitorExecutor.java:37)&lt;BR /&gt;
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)&lt;BR /&gt;
        at java.util.concurrent.FutureTask.run(FutureTask.java:166)&lt;BR /&gt;
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)&lt;BR /&gt;
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)&lt;BR /&gt;
        at java.util.concurrent.FutureTask.run(FutureTask.java:166)&lt;BR /&gt;
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)&lt;BR /&gt;
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)&lt;BR /&gt;
        at java.util.concurrent.FutureTask.run(FutureTask.java:166)&lt;BR /&gt;
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)&lt;BR /&gt;
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)&lt;BR /&gt;
        at java.lang.Thread.run(Thread.java:679)&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;The &lt;CODE&gt;event_id&lt;/CODE&gt; column is an alias of the &lt;CODE&gt;EPOEvents.AutoID&lt;/CODE&gt; column, but when I use any of the following: &lt;CODE&gt;[EPOEvents].[AutoID]&lt;/CODE&gt;, &lt;CODE&gt;EPOEvents.AutoID&lt;/CODE&gt;, &lt;CODE&gt;[AutoID]&lt;/CODE&gt;, &lt;CODE&gt;AutoID&lt;/CODE&gt;, &lt;CODE&gt;[EPOEvents].[event_id]&lt;/CODE&gt;, or &lt;CODE&gt;[event_id]&lt;/CODE&gt;, the error reports that the field is not part of the resulting record set.&lt;/P&gt;

&lt;P&gt;What is the format for specifying the rising_column field?  Thanks!&lt;/P&gt;

&lt;P&gt;-Josh&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2013 13:41:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/In-what-format-should-the-rising-column-be/m-p/66932#M180452</guid>
      <dc:creator>joshua_hart</dc:creator>
      <dc:date>2013-06-18T13:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: In what format should the rising_column be?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/In-what-format-should-the-rising-column-be/m-p/66933#M180453</link>
      <description>&lt;P&gt;Please provide more info about the settings you chose for the database input. Are you using a custom query?&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2013 17:36:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/In-what-format-should-the-rising-column-be/m-p/66933#M180453</guid>
      <dc:creator>ziegfried</dc:creator>
      <dc:date>2013-06-18T17:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: In what format should the rising_column be?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/In-what-format-should-the-rising-column-be/m-p/66934#M180454</link>
      <description>&lt;P&gt;it needs to be an increasing number&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2013 04:21:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/In-what-format-should-the-rising-column-be/m-p/66934#M180454</guid>
      <dc:creator>asimagu</dc:creator>
      <dc:date>2013-06-20T04:21:23Z</dc:date>
    </item>
    <item>
      <title>Re: In what format should the rising_column be?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/In-what-format-should-the-rising-column-be/m-p/66935#M180455</link>
      <description>&lt;P&gt;Right.  What I wondering, is how should I format the field name that I define as my rising_column?  The field I'm using is an increasing number, but I always get one of the following errors regardless of how I format the field name: "Field name not found in result set" or "Invalid column name"&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2013 12:02:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/In-what-format-should-the-rising-column-be/m-p/66935#M180455</guid>
      <dc:creator>joshua_hart</dc:creator>
      <dc:date>2013-06-20T12:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: In what format should the rising_column be?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/In-what-format-should-the-rising-column-be/m-p/66936#M180456</link>
      <description>&lt;P&gt;I'm using a custom SQL query taken from the TA-mcaffee package.  The query is found in the mcafee_epo.py.pymssql file.  Instead of the top 10000 rows, I'm selecting all rows using the {{WHERE $rising_column$ &amp;gt; ?}} statement.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:08:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/In-what-format-should-the-rising-column-be/m-p/66936#M180456</guid>
      <dc:creator>joshua_hart</dc:creator>
      <dc:date>2020-09-28T14:08:26Z</dc:date>
    </item>
    <item>
      <title>Re: In what format should the rising_column be?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/In-what-format-should-the-rising-column-be/m-p/66937#M180457</link>
      <description>&lt;P&gt;Sorry, did not get what you were asking right. Maybe you can do a simple query to test that alias, Select only AutoID from the table and use it as a rising_column. If that works, try to make it more complex bit by bit&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2013 02:40:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/In-what-format-should-the-rising-column-be/m-p/66937#M180457</guid>
      <dc:creator>asimagu</dc:creator>
      <dc:date>2013-06-21T02:40:34Z</dc:date>
    </item>
    <item>
      <title>Re: In what format should the rising_column be?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/In-what-format-should-the-rising-column-be/m-p/66938#M180458</link>
      <description>&lt;P&gt;did you ever get a solution working? I have the exact same issue.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2013 15:11:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/In-what-format-should-the-rising-column-be/m-p/66938#M180458</guid>
      <dc:creator>steven87vt</dc:creator>
      <dc:date>2013-07-11T15:11:40Z</dc:date>
    </item>
    <item>
      <title>Re: In what format should the rising_column be?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/In-what-format-should-the-rising-column-be/m-p/66939#M180459</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;Just in case you or someone else is still struggling with this:&lt;/P&gt;

&lt;P&gt;The problem seems to be in the renaming of the event_id / EPOEvents.AutoID column.&lt;/P&gt;

&lt;P&gt;I had the same problem and found a solution by wrapping the custom SQL select into another outer select and then using the &lt;CODE&gt;event_id&lt;/CODE&gt; as the &lt;CODE&gt;rising_column&lt;/CODE&gt;. This way, the correct "column" name (&lt;CODE&gt;event_id&lt;/CODE&gt;) exists in the original data set and the resulting data set.&lt;/P&gt;

&lt;P&gt;I did it like this, you can modify any part if needed. This works for me at least:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SELECT * FROM (

.... the query string from TA_mcafee comes here ...

) as outer_table
{{WHERE $rising_column$ &amp;gt; ?}}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I also needed to disable one of the columns that try to write to the &lt;CODE&gt;login_user&lt;/CODE&gt; field in the mcafee query, because otherwise the outer SELECT would fail (two inputs for the same field name, login_user). You can see this problem by looking at the mcafee SQL query. I disabled the select row by commenting out the SourceUserName column from the SQL statement, like this:&lt;BR /&gt;
 &lt;CODE&gt;--[EPOEvents].[SourceUserName] as [logon_user],&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;This seems to do the trick for me at least.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:23:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/In-what-format-should-the-rising-column-be/m-p/66939#M180459</guid>
      <dc:creator>leppalaa</dc:creator>
      <dc:date>2020-09-28T16:23:51Z</dc:date>
    </item>
  </channel>
</rss>

