<?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 why db_connect can't output result to MySQL database in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/why-db-connect-can-t-output-result-to-MySQL-database/m-p/340872#M5211</link>
    <description>&lt;P&gt;I installed db_connect 3.1.2 on search head of SHC mode. I will output result to MySQL db from splunk search. I tried the following two methods, but MySQL database still has no data&lt;/P&gt;

&lt;P&gt;search (alert type is real-time,use admin permission):&lt;BR /&gt;
&lt;CODE&gt;index=attackinfo|field _time src_ip dst_ip result  system&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;1、save as an  alert ,   add &lt;CODE&gt;DBX output alert action&lt;/CODE&gt; trigger action&lt;BR /&gt;
OR&lt;BR /&gt;
2、add &lt;CODE&gt;|dbxoutput output="outputAttackinfoToLiveMap"&lt;/CODE&gt; at the end of search&lt;/P&gt;

&lt;P&gt;When some events passing through the search window,these events not output to MySQL?why?but I open search to running second search statement ,  These events are written to the MySQL&lt;/P&gt;

&lt;P&gt;why event is not written to the Mysql when it is saved as a alert. but running search statement  that can output to mysql db! I tried to modify the alert  type to a cron expression, &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;-1m@m&lt;/CODE&gt;     &lt;CODE&gt;@m&lt;/CODE&gt;    &lt;CODE&gt;*/1 * * * *&lt;/CODE&gt; &lt;/P&gt;

&lt;P&gt;but still so&lt;/P&gt;</description>
    <pubDate>Tue, 13 Mar 2018 11:57:14 GMT</pubDate>
    <dc:creator>xsstest</dc:creator>
    <dc:date>2018-03-13T11:57:14Z</dc:date>
    <item>
      <title>why db_connect can't output result to MySQL database</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/why-db-connect-can-t-output-result-to-MySQL-database/m-p/340872#M5211</link>
      <description>&lt;P&gt;I installed db_connect 3.1.2 on search head of SHC mode. I will output result to MySQL db from splunk search. I tried the following two methods, but MySQL database still has no data&lt;/P&gt;

&lt;P&gt;search (alert type is real-time,use admin permission):&lt;BR /&gt;
&lt;CODE&gt;index=attackinfo|field _time src_ip dst_ip result  system&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;1、save as an  alert ,   add &lt;CODE&gt;DBX output alert action&lt;/CODE&gt; trigger action&lt;BR /&gt;
OR&lt;BR /&gt;
2、add &lt;CODE&gt;|dbxoutput output="outputAttackinfoToLiveMap"&lt;/CODE&gt; at the end of search&lt;/P&gt;

&lt;P&gt;When some events passing through the search window,these events not output to MySQL?why?but I open search to running second search statement ,  These events are written to the MySQL&lt;/P&gt;

&lt;P&gt;why event is not written to the Mysql when it is saved as a alert. but running search statement  that can output to mysql db! I tried to modify the alert  type to a cron expression, &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;-1m@m&lt;/CODE&gt;     &lt;CODE&gt;@m&lt;/CODE&gt;    &lt;CODE&gt;*/1 * * * *&lt;/CODE&gt; &lt;/P&gt;

&lt;P&gt;but still so&lt;/P&gt;</description>
      <pubDate>Tue, 13 Mar 2018 11:57:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/why-db-connect-can-t-output-result-to-MySQL-database/m-p/340872#M5211</guid>
      <dc:creator>xsstest</dc:creator>
      <dc:date>2018-03-13T11:57:14Z</dc:date>
    </item>
    <item>
      <title>Re: why db_connect can't output result to MySQL database</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/why-db-connect-can-t-output-result-to-MySQL-database/m-p/340873#M5212</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I am not sure, but as per doc :&lt;BR /&gt;
DB Connect 3 does not support running scheduled task (input or output) on the search head in the Search head cluster deployment. You must run the scheduled task on a heavy forwarder.&lt;/P&gt;

&lt;P&gt;Also, can you tell me database output setting you configured? Refer this doc:&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/DBX/3.1.1/DeployDBX/Createandmanagedatabaseoutputs"&gt;http://docs.splunk.com/Documentation/DBX/3.1.1/DeployDBX/Createandmanagedatabaseoutputs&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Mar 2018 12:13:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/why-db-connect-can-t-output-result-to-MySQL-database/m-p/340873#M5212</guid>
      <dc:creator>p_gurav</dc:creator>
      <dc:date>2018-03-13T12:13:48Z</dc:date>
    </item>
    <item>
      <title>Re: why db_connect can't output result to MySQL database</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/why-db-connect-can-t-output-result-to-MySQL-database/m-p/340874#M5213</link>
      <description>&lt;P&gt;hi, @p_gurav&lt;/P&gt;

&lt;P&gt;not support running scheduled task.&lt;/P&gt;

&lt;P&gt;When I configure output , one option is "Scheduling", but I didn't check it, so I chose to use alert to output  to MySQL database.&lt;BR /&gt;
Do you mean scheduled task that refer to this option?&lt;/P&gt;</description>
      <pubDate>Tue, 13 Mar 2018 12:57:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/why-db-connect-can-t-output-result-to-MySQL-database/m-p/340874#M5213</guid>
      <dc:creator>xsstest</dc:creator>
      <dc:date>2018-03-13T12:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: why db_connect can't output result to MySQL database</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/why-db-connect-can-t-output-result-to-MySQL-database/m-p/340875#M5214</link>
      <description>&lt;P&gt;Ok. can you share database output you created?&lt;/P&gt;</description>
      <pubDate>Tue, 13 Mar 2018 13:02:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/why-db-connect-can-t-output-result-to-MySQL-database/m-p/340875#M5214</guid>
      <dc:creator>p_gurav</dc:creator>
      <dc:date>2018-03-13T13:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: why db_connect can't output result to MySQL database</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/why-db-connect-can-t-output-result-to-MySQL-database/m-p/340876#M5215</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/85706"&gt;@p_gurav&lt;/a&gt;&lt;BR /&gt;
&lt;CODE&gt;&lt;BR /&gt;
[outputAttackinfoToLiveMap]&lt;BR /&gt;
connection = Connection_LiveMap&lt;BR /&gt;
customized_mappings = src_ip:clientip:12,dst_ip:ipstr:12,result:attacktype:12;_time:attacktime:4,system:system:12&lt;BR /&gt;
disabled=0&lt;BR /&gt;
interval=* * * * * ?&lt;BR /&gt;
is_saved_search = 0&lt;BR /&gt;
query_timeout=&lt;BR /&gt;
scheduled = 0&lt;BR /&gt;
search = index=attackinfo|field _time src_ip dst_ip result system&lt;BR /&gt;
table_name = `livemap`.`attack_log`&lt;BR /&gt;
ui_query_catalog = livemap&lt;BR /&gt;
ui_query_table = attack_log&lt;BR /&gt;
using_upsert=0&lt;BR /&gt;
&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;This is what I entered manually,Because I can't copy information from the intranet&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 18:29:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/why-db-connect-can-t-output-result-to-MySQL-database/m-p/340876#M5215</guid>
      <dc:creator>xsstest</dc:creator>
      <dc:date>2020-09-29T18:29:08Z</dc:date>
    </item>
    <item>
      <title>Re: why db_connect can't output result to MySQL database</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/why-db-connect-can-t-output-result-to-MySQL-database/m-p/340877#M5216</link>
      <description>&lt;P&gt;The question still not resolved, and no one knows why?&lt;/P&gt;</description>
      <pubDate>Thu, 22 Mar 2018 15:26:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/why-db-connect-can-t-output-result-to-MySQL-database/m-p/340877#M5216</guid>
      <dc:creator>xsstest</dc:creator>
      <dc:date>2018-03-22T15:26:55Z</dc:date>
    </item>
  </channel>
</rss>

