<?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: JDBC Scripted input in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/JDBC-Scripted-input/m-p/23645#M96575</link>
    <description>&lt;P&gt;Ok,  Have you placed your &lt;STRONG&gt;libsqljdbc.jar&lt;/STRONG&gt; in &lt;STRONG&gt;$SPLUNK_HOME/etc/apps/splunkjdbcscriptedinput/bin/lib/&lt;/STRONG&gt;. All jar(s) for youjdbc driver have to be placed in that location or edit the script to reference you jar locations.&lt;/P&gt;

&lt;P&gt;Line 14 of the bat file &lt;STRONG&gt;java -cp "lib\*"&lt;/STRONG&gt; change &lt;STRONG&gt;lib&lt;/STRONG&gt; to the location of your jdbc driver .jar location.&lt;/P&gt;</description>
    <pubDate>Mon, 05 Nov 2012 17:53:36 GMT</pubDate>
    <dc:creator>bmacias84</dc:creator>
    <dc:date>2012-11-05T17:53:36Z</dc:date>
    <item>
      <title>JDBC Scripted input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/JDBC-Scripted-input/m-p/23640#M96570</link>
      <description>&lt;P&gt;I am using this app for querying database (Sql server logs). I have completed all the steps in read.txt file provided in app directory but I get "Error: Could not find or load main class lib\sqljdbc.jar". Indexer is on Windows machine.&lt;/P&gt;

&lt;P&gt;How can I solve this error? &lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2012 15:29:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/JDBC-Scripted-input/m-p/23640#M96570</guid>
      <dc:creator>macwin</dc:creator>
      <dc:date>2012-11-05T15:29:23Z</dc:date>
    </item>
    <item>
      <title>Re: JDBC Scripted input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/JDBC-Scripted-input/m-p/23641#M96571</link>
      <description>&lt;P&gt;Could you provide your stanza for your scripted input?&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2012 16:32:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/JDBC-Scripted-input/m-p/23641#M96571</guid>
      <dc:creator>bmacias84</dc:creator>
      <dc:date>2012-11-05T16:32:26Z</dc:date>
    </item>
    <item>
      <title>Re: JDBC Scripted input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/JDBC-Scripted-input/m-p/23642#M96572</link>
      <description>&lt;P&gt;According to the app, I need to create one inputs.conf file. The stanza is :&lt;/P&gt;

&lt;P&gt;[script://./bin/run.bat example]&lt;BR /&gt;
interval = 60&lt;BR /&gt;
sourcetype = example&lt;BR /&gt;
source = jdbc&lt;/P&gt;

&lt;H1&gt;index = jdbc&lt;/H1&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2012 16:58:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/JDBC-Scripted-input/m-p/23642#M96572</guid>
      <dc:creator>macwin</dc:creator>
      <dc:date>2012-11-05T16:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: JDBC Scripted input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/JDBC-Scripted-input/m-p/23643#M96573</link>
      <description>&lt;P&gt;Ok, I dont see anything wrong with your stanza, but i think i know whats happening.  To be sure you mind posting your bat script ommitting anything confidental. Here is my though in your bat file you need to fully quilify your paths for both java and your jar file or add ENV variables for each.&lt;/P&gt;

&lt;P&gt;Example of a commandline jar I use.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;BR /&gt;
d:/java/jdk1.6.0_31/bin/java.exe -jar d:/mycustomjars/cmdline-jmxclient-0.10.5.jar&lt;BR /&gt;
#note: if there are any spaces in your paths single or double quote them.&lt;BR /&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2012 17:16:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/JDBC-Scripted-input/m-p/23643#M96573</guid>
      <dc:creator>bmacias84</dc:creator>
      <dc:date>2012-11-05T17:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: JDBC Scripted input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/JDBC-Scripted-input/m-p/23644#M96574</link>
      <description>&lt;P&gt;Thanks for help. I am using the same bat file with as given by the app. Here are the contents.&lt;/P&gt;

&lt;P&gt;@echo off&lt;BR /&gt;
cd %~dp0&lt;BR /&gt;
SET QUERY_NAME=%1&lt;/P&gt;

&lt;P&gt;SET LOG_NAME=jdbcscriptedinput.%QUERY_NAME%.log&lt;BR /&gt;
SET LOG_PATH="........\var\log\splunk\%LOG_NAME%"&lt;BR /&gt;
del %LOG_PATH%.5&lt;BR /&gt;
rename %LOG_PATH%.4 %LOG_NAME%.5&lt;BR /&gt;
rename %LOG_PATH%.3 %LOG_NAME%.4&lt;BR /&gt;
rename %LOG_PATH%.2 %LOG_NAME%.3&lt;BR /&gt;
rename %LOG_PATH%.1 %LOG_NAME%.2&lt;BR /&gt;
rename %LOG_PATH% %LOG_NAME%.1&lt;/P&gt;

&lt;P&gt;java -cp "lib*" com.splunk.jdbcscriptedinput.Main %QUERY_NAME%\query.properties %QUERY_NAME%\query.pointer 2&amp;gt; %LOG_PATH%&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:44:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/JDBC-Scripted-input/m-p/23644#M96574</guid>
      <dc:creator>macwin</dc:creator>
      <dc:date>2020-09-28T12:44:47Z</dc:date>
    </item>
    <item>
      <title>Re: JDBC Scripted input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/JDBC-Scripted-input/m-p/23645#M96575</link>
      <description>&lt;P&gt;Ok,  Have you placed your &lt;STRONG&gt;libsqljdbc.jar&lt;/STRONG&gt; in &lt;STRONG&gt;$SPLUNK_HOME/etc/apps/splunkjdbcscriptedinput/bin/lib/&lt;/STRONG&gt;. All jar(s) for youjdbc driver have to be placed in that location or edit the script to reference you jar locations.&lt;/P&gt;

&lt;P&gt;Line 14 of the bat file &lt;STRONG&gt;java -cp "lib\*"&lt;/STRONG&gt; change &lt;STRONG&gt;lib&lt;/STRONG&gt; to the location of your jdbc driver .jar location.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2012 17:53:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/JDBC-Scripted-input/m-p/23645#M96575</guid>
      <dc:creator>bmacias84</dc:creator>
      <dc:date>2012-11-05T17:53:36Z</dc:date>
    </item>
    <item>
      <title>Re: JDBC Scripted input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/JDBC-Scripted-input/m-p/23646#M96576</link>
      <description>&lt;P&gt;Thanks. The error is "Could not find or load main class com.splunk.jdbcscriptedinput.Main"&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2012 18:17:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/JDBC-Scripted-input/m-p/23646#M96576</guid>
      <dc:creator>macwin</dc:creator>
      <dc:date>2012-11-05T18:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: JDBC Scripted input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/JDBC-Scripted-input/m-p/23647#M96577</link>
      <description>&lt;P&gt;The error changed? If thats the case copy the &lt;STRONG&gt;splunkjdbcscriptedinput-0.3.jar&lt;/STRONG&gt; and &lt;STRONG&gt;log4j-1.2.16.jar&lt;/STRONG&gt; from &lt;STRONG&gt;$SPLUNK_HOME/etc/apps/splunkjdbcscriptedinput/bin/lib/&lt;/STRONG&gt; to your new location.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2012 18:20:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/JDBC-Scripted-input/m-p/23647#M96577</guid>
      <dc:creator>bmacias84</dc:creator>
      <dc:date>2012-11-05T18:20:16Z</dc:date>
    </item>
    <item>
      <title>Re: JDBC Scripted input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/JDBC-Scripted-input/m-p/23648#M96578</link>
      <description>&lt;P&gt;Yeah.It changed. Now it is able to find the JAR ( I guess). Have you face this error before?&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2012 18:22:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/JDBC-Scripted-input/m-p/23648#M96578</guid>
      <dc:creator>macwin</dc:creator>
      <dc:date>2012-11-05T18:22:16Z</dc:date>
    </item>
    <item>
      <title>Re: JDBC Scripted input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/JDBC-Scripted-input/m-p/23649#M96579</link>
      <description>&lt;P&gt;Not this particular error,  I work with Java/JVMs in a mixed environments.  Its usually path or missing lib issue when working with CLI.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2012 18:26:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/JDBC-Scripted-input/m-p/23649#M96579</guid>
      <dc:creator>bmacias84</dc:creator>
      <dc:date>2012-11-05T18:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: JDBC Scripted input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/JDBC-Scripted-input/m-p/23650#M96580</link>
      <description>&lt;P&gt;No luck. If you need any other information, please let me know. I have done everything accoerding to your instructions.&lt;/P&gt;

&lt;P&gt;java -cp "lib*" com.splunk.jdbcscriptedinput.Main %QUERY_NAME%\query.properties %QUERY_NAME%\query.pointer 2&amp;gt; %LOG_PATH%&lt;/P&gt;

&lt;P&gt;Do I need to change %QUERY_NAME% information in this command.&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:44:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/JDBC-Scripted-input/m-p/23650#M96580</guid>
      <dc:creator>macwin</dc:creator>
      <dc:date>2020-09-28T12:44:52Z</dc:date>
    </item>
    <item>
      <title>Re: JDBC Scripted input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/JDBC-Scripted-input/m-p/23651#M96581</link>
      <description>&lt;P&gt;I'm reaching my limit of knowledge here but post your $SPLUNK_HOME/var/log/splunk/jdbcscriptedinput.yourqueryname.log&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2012 18:57:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/JDBC-Scripted-input/m-p/23651#M96581</guid>
      <dc:creator>bmacias84</dc:creator>
      <dc:date>2012-11-05T18:57:10Z</dc:date>
    </item>
    <item>
      <title>Re: JDBC Scripted input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/JDBC-Scripted-input/m-p/23652#M96582</link>
      <description>&lt;P&gt;Error: Could not find or load main class com.splunk.jdbcscriptedinput.Main&lt;/P&gt;

&lt;P&gt;i am having a similar issue&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2012 19:00:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/JDBC-Scripted-input/m-p/23652#M96582</guid>
      <dc:creator>chetu</dc:creator>
      <dc:date>2012-11-05T19:00:20Z</dc:date>
    </item>
    <item>
      <title>Re: JDBC Scripted input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/JDBC-Scripted-input/m-p/23653#M96583</link>
      <description>&lt;P&gt;The file says : Error: Could not find or load main class com.splunk.jdbcscriptedinput.Main&lt;BR /&gt;
Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2012 19:02:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/JDBC-Scripted-input/m-p/23653#M96583</guid>
      <dc:creator>macwin</dc:creator>
      <dc:date>2012-11-05T19:02:37Z</dc:date>
    </item>
    <item>
      <title>Re: JDBC Scripted input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/JDBC-Scripted-input/m-p/23654#M96584</link>
      <description>&lt;P&gt;I've installed JDK 7u9 with no problems on a win2k8 server with splunk 4.3.x.  I am unable to replicate your issues.  Not sure what the minimium JRE requirements are for this app.  Also make sure you have correctly defined your query.properties and query.properties.mssql.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2012 19:42:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/JDBC-Scripted-input/m-p/23654#M96584</guid>
      <dc:creator>bmacias84</dc:creator>
      <dc:date>2012-11-05T19:42:43Z</dc:date>
    </item>
    <item>
      <title>Re: JDBC Scripted input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/JDBC-Scripted-input/m-p/23655#M96585</link>
      <description>&lt;P&gt;Should I share query.propertues and query.properties.mssql file contents?&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2012 19:56:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/JDBC-Scripted-input/m-p/23655#M96585</guid>
      <dc:creator>macwin</dc:creator>
      <dc:date>2012-11-05T19:56:55Z</dc:date>
    </item>
    <item>
      <title>Re: JDBC Scripted input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/JDBC-Scripted-input/m-p/23656#M96586</link>
      <description>&lt;P&gt;I did not duplicate this on Windows, but on OS X I received the linux comparable error.  Setting the SPLUNK_HOME variable fixed this.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Nov 2012 05:05:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/JDBC-Scripted-input/m-p/23656#M96586</guid>
      <dc:creator>Jon_Webster</dc:creator>
      <dc:date>2012-11-06T05:05:44Z</dc:date>
    </item>
    <item>
      <title>Re: JDBC Scripted input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/JDBC-Scripted-input/m-p/23657#M96587</link>
      <description>&lt;P&gt;I have SPLUNK_HOME set, however I am still getting this error&lt;/P&gt;</description>
      <pubDate>Tue, 13 Nov 2012 19:13:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/JDBC-Scripted-input/m-p/23657#M96587</guid>
      <dc:creator>Cuyose</dc:creator>
      <dc:date>2012-11-13T19:13:57Z</dc:date>
    </item>
  </channel>
</rss>

