<?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: Why is the Splunk DB Connect not indexing data? in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Why-is-the-Splunk-DB-Connect-not-indexing-data/m-p/421816#M51432</link>
    <description>&lt;P&gt;Your suggestion worked for me too.&lt;/P&gt;</description>
    <pubDate>Fri, 28 Dec 2018 12:35:31 GMT</pubDate>
    <dc:creator>astrid_h</dc:creator>
    <dc:date>2018-12-28T12:35:31Z</dc:date>
    <item>
      <title>Why is the Splunk DB Connect not indexing data?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Why-is-the-Splunk-DB-Connect-not-indexing-data/m-p/421806#M51422</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I have a problem with Splunk Entreprise 6.5.2 et Splunk DB Connect 3.1.3 :&lt;BR /&gt;
Splunk DB Connect don't index data from database.&lt;BR /&gt;
In logs, I see :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2018-05-28 14:53:51.863 +0200  [QuartzScheduler_Worker-27] INFO  org.easybatch.core.job.BatchJob - Job 'testdbinput' finished with status: FAILED

2018-05-28 14:53:51.863 +0200  [QuartzScheduler_Worker-27] ERROR org.easybatch.core.job.BatchJob - Unable to write records
java.io.IOException: HTTP Error 400: Bad Request
    at com.splunk.dbx.server.dbinput.recordwriter.HttpEventCollector.uploadEventBatch(HttpEventCollector.java:112)
    at com.splunk.dbx.server.dbinput.recordwriter.HttpEventCollector.uploadEvents(HttpEventCollector.java:89)
    at com.splunk.dbx.server.dbinput.recordwriter.HecEventWriter.writeRecords(HecEventWriter.java:36
....

2018-05-28 14:53:51.863 +0200  [QuartzScheduler_Worker-27] ERROR c.s.d.s.task.listeners.RecordWriterMetricsListener - action=unable_to_write_batch
java.io.IOException: HTTP Error 400: Bad Request
    at com.splunk.dbx.server.dbinput.recordwriter.HttpEventCollector.uploadEventBatch(HttpEventCollector.java:112)
    at com.splunk.dbx.server.dbinput.recordwriter.HttpEventCollector.uploadEvents(HttpEventCollector.java:89)
    at com.splunk.dbx.server.dbinput.recordwriter.HecEventWriter.writeRecords(HecEventWriter.java:36)
...

2018-05-28 14:53:51.850 +0200  [QuartzScheduler_Worker-27] INFO  c.s.d.s.dbinput.recordwriter.HttpEventCollector - action=writing_events_via_http_event_collector record_count=5
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;When I configure my input, the request is OK :&lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/5054i5B0D66497AD05994/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;I have disabled SSL, and I put a tcpdump in the server to see request :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;{"time":"1527509442,533","event":"2018-05-28 14:10:42.533, action=\"SUPPRESSION_CONTRAT\"","host":"xxxxx","source":"testdbinput","sourcetype":"defautkv_xxxxx","index":"test"}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;When I test to send this data  with a curl :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -k &lt;A href="https://127.0.0.1:8088/services/collector/event" target="test_blank"&gt;https://127.0.0.1:8088/services/collector/event&lt;/A&gt; -H "Authorization: Splunk 761bdb35-0b8c-4780-xxxx-xxxxxx" -d '{"time":"1527509442,533","event":"2018-05-28 14:10:42.533, action=\"SUPPRESSION_CONTRAT\"","host":"xxxxx","source":"testdbinput","sourcetype":"xxxxx","index":"test"}'
{"text":"Error in handling indexed fields","code":15}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;For me the field time isn't correct : &lt;STRONG&gt;1527509442,533&lt;/STRONG&gt; ==&amp;gt; &lt;STRONG&gt;1527509442.533&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -k &lt;A href="https://127.0.0.1:8088/services/collector/event" target="test_blank"&gt;https://127.0.0.1:8088/services/collector/event&lt;/A&gt; -H "Authorization: Splunk 761bdb35-0b8c-4780-xxxx-xxxxxx" -d '{"time":"1527509442.533","event":"2018-05-28 14:10:42.533, action=\"SUPPRESSION_CONTRAT\"","host":"xxxxx","source":"testdbinput","sourcetype":"xxxxx","index":"test"}'
{"text":"Success","code":0}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Is it a bug in Splunk DB Connect ?&lt;/P&gt;

&lt;P&gt;Thank you in advance,&lt;/P&gt;

&lt;P&gt;Cordially&lt;/P&gt;</description>
      <pubDate>Mon, 28 May 2018 13:15:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Why-is-the-Splunk-DB-Connect-not-indexing-data/m-p/421806#M51422</guid>
      <dc:creator>apair</dc:creator>
      <dc:date>2018-05-28T13:15:38Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the Splunk DB Connect not indexing data?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Why-is-the-Splunk-DB-Connect-not-indexing-data/m-p/421807#M51423</link>
      <description>&lt;P&gt;Sorry, I can't edit and I want to add this information : &lt;BR /&gt;
=&amp;gt; I have tested with the version 2.4.1. It is OK, Data is indexed correctly...&lt;/P&gt;

&lt;P&gt;So it is a bug in the 3.1.1 version ?&lt;/P&gt;</description>
      <pubDate>Tue, 29 May 2018 06:47:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Why-is-the-Splunk-DB-Connect-not-indexing-data/m-p/421807#M51423</guid>
      <dc:creator>apair</dc:creator>
      <dc:date>2018-05-29T06:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the Splunk DB Connect not indexing data?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Why-is-the-Splunk-DB-Connect-not-indexing-data/m-p/421808#M51424</link>
      <description>&lt;P&gt;I have the same problem. It would be much appriciated if you could update your post if you find a solution. Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 30 May 2018 12:16:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Why-is-the-Splunk-DB-Connect-not-indexing-data/m-p/421808#M51424</guid>
      <dc:creator>PeterSkarmyr</dc:creator>
      <dc:date>2018-05-30T12:16:45Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the Splunk DB Connect not indexing data?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Why-is-the-Splunk-DB-Connect-not-indexing-data/m-p/421809#M51425</link>
      <description>&lt;P&gt;I also have the issue with the metadata field "time" is not being formated correctly. It is using a comma instead of a dot. In the documentation, under metadata,  it says it should be a dot with the default settings: &lt;A href="https://docs.splunk.com/Documentation/Splunk/7.1.1/Data/FormateventsforHTTPEventCollector"&gt;https://docs.splunk.com/Documentation/Splunk/7.1.1/Data/FormateventsforHTTPEventCollector&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Again, if you find a workaround it would be much appriciated if you let me know. Thanks.&lt;/P&gt;

&lt;P&gt;Relevant event from my log where you see the event being created incorrectly with a badly formated time field:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2018-05-30 15:09:48.365 +0200 [QuartzScheduler_Worker-22] DEBUG c.s.d.s.dbinput.task.processors.EventMarshaller - action=finish_format_hec_events record=Record: {header=[number=2, source="blueprism", creationDate="2018-05-30 15:09:48.365"], payload=[{"time":"1527685788,365","event":"2018-05-30 15:09:48.365, resourceid=\"9EAD88A2-725A-4806-897F-8F1C8B1022AD\", name=\"NOLB2373_debug\", status=\"Ready\", processesrunning=\"0\", actionsrunning=\"0\", unitsallocated=\"0\", lastupdated=\"2018-05-09 14:12:21.64\", AttributeID=\"4\", diagnostics=\"0\", logtoeventlog=\"1\", FQDN=\"NOLB2373.mistral.mistralnett.com\", ssl=\"0\", userID=\"6D34DB81-1665-4324-89B4-21A0B878100B\"","host":"NOLB2373\\SQLEXPRESS","source":"blueprism","sourcetype":"blue_prism","index":"resources"}]}
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 30 May 2018 13:44:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Why-is-the-Splunk-DB-Connect-not-indexing-data/m-p/421809#M51425</guid>
      <dc:creator>PeterSkarmyr</dc:creator>
      <dc:date>2018-05-30T13:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the Splunk DB Connect not indexing data?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Why-is-the-Splunk-DB-Connect-not-indexing-data/m-p/421810#M51426</link>
      <description>&lt;P&gt;At this time I have downloaded the version 2.4.1 and it's working properly but I would like to update to the latest version...&lt;/P&gt;</description>
      <pubDate>Thu, 31 May 2018 08:45:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Why-is-the-Splunk-DB-Connect-not-indexing-data/m-p/421810#M51426</guid>
      <dc:creator>apair</dc:creator>
      <dc:date>2018-05-31T08:45:30Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the Splunk DB Connect not indexing data?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Why-is-the-Splunk-DB-Connect-not-indexing-data/m-p/421811#M51427</link>
      <description>&lt;P&gt;3.1.1 version works properly as well. But I had to completely remove the app in console first. After upgrade I see each time that task server cannot be run on port 9998 or any other free port.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jun 2018 08:48:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Why-is-the-Splunk-DB-Connect-not-indexing-data/m-p/421811#M51427</guid>
      <dc:creator>qthalia</dc:creator>
      <dc:date>2018-06-06T08:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the Splunk DB Connect not indexing data?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Why-is-the-Splunk-DB-Connect-not-indexing-data/m-p/421812#M51428</link>
      <description>&lt;P&gt;How did you get version 3.1.1? I can only download version 2.4.1 or 3.1.3 on splunkbase.&lt;BR /&gt;
Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jun 2018 12:47:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Why-is-the-Splunk-DB-Connect-not-indexing-data/m-p/421812#M51428</guid>
      <dc:creator>PeterSkarmyr</dc:creator>
      <dc:date>2018-06-06T12:47:23Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the Splunk DB Connect not indexing data?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Why-is-the-Splunk-DB-Connect-not-indexing-data/m-p/421813#M51429</link>
      <description>&lt;P&gt;Let me know your email I'll send you a link to the file stored in my Google drive. &lt;/P&gt;</description>
      <pubDate>Sat, 09 Jun 2018 05:18:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Why-is-the-Splunk-DB-Connect-not-indexing-data/m-p/421813#M51429</guid>
      <dc:creator>qthalia</dc:creator>
      <dc:date>2018-06-09T05:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the Splunk DB Connect not indexing data?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Why-is-the-Splunk-DB-Connect-not-indexing-data/m-p/421814#M51430</link>
      <description>&lt;P&gt;You have to change your locale environment variables: &lt;BR /&gt;
LANG=C &lt;BR /&gt;
LC_ALL=C &lt;/P&gt;</description>
      <pubDate>Thu, 28 Jun 2018 07:58:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Why-is-the-Splunk-DB-Connect-not-indexing-data/m-p/421814#M51430</guid>
      <dc:creator>kamil_rostecki</dc:creator>
      <dc:date>2018-06-28T07:58:41Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the Splunk DB Connect not indexing data?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Why-is-the-Splunk-DB-Connect-not-indexing-data/m-p/421815#M51431</link>
      <description>&lt;P&gt;I had the same issue, and your suggestion worked for me. My splunk user was using "fr_FR.UTF-8", &lt;BR /&gt;
I changed with LANG=en_US.UTF-8 and LC_ALL=en_US.UTF-8 &lt;BR /&gt;
Thank you for your help&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 21:02:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Why-is-the-Splunk-DB-Connect-not-indexing-data/m-p/421815#M51431</guid>
      <dc:creator>jmzuccolini</dc:creator>
      <dc:date>2020-09-29T21:02:44Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the Splunk DB Connect not indexing data?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Why-is-the-Splunk-DB-Connect-not-indexing-data/m-p/421816#M51432</link>
      <description>&lt;P&gt;Your suggestion worked for me too.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Dec 2018 12:35:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Why-is-the-Splunk-DB-Connect-not-indexing-data/m-p/421816#M51432</guid>
      <dc:creator>astrid_h</dc:creator>
      <dc:date>2018-12-28T12:35:31Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the Splunk DB Connect not indexing data?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Why-is-the-Splunk-DB-Connect-not-indexing-data/m-p/421817#M51433</link>
      <description>&lt;P&gt;Hi&lt;BR /&gt;
Can anyone show an example of how to change the  locale environment variables: &lt;BR /&gt;
LANG=C &lt;BR /&gt;
LC_ALL=C &lt;/P&gt;

&lt;P&gt;Thanks for all reply&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2019 12:56:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Why-is-the-Splunk-DB-Connect-not-indexing-data/m-p/421817#M51433</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-01-11T12:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the Splunk DB Connect not indexing data?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Why-is-the-Splunk-DB-Connect-not-indexing-data/m-p/421818#M51434</link>
      <description>&lt;P&gt;Hi, is it possible to get a copy of the older version please?&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2019 12:57:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Why-is-the-Splunk-DB-Connect-not-indexing-data/m-p/421818#M51434</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-01-11T12:57:44Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the Splunk DB Connect not indexing data?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Why-is-the-Splunk-DB-Connect-not-indexing-data/m-p/421819#M51435</link>
      <description>&lt;P&gt;In Linux, type locale at the prompt.  I'm not sure how to do it in Windows.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2019 14:23:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Why-is-the-Splunk-DB-Connect-not-indexing-data/m-p/421819#M51435</guid>
      <dc:creator>tecooper</dc:creator>
      <dc:date>2019-01-11T14:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the Splunk DB Connect not indexing data?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Why-is-the-Splunk-DB-Connect-not-indexing-data/m-p/421820#M51436</link>
      <description>&lt;P&gt;Thank you, I wil try to change this in windows for the user running splunk. &lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2019 18:48:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Why-is-the-Splunk-DB-Connect-not-indexing-data/m-p/421820#M51436</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-01-11T18:48:45Z</dc:date>
    </item>
  </channel>
</rss>

