<?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 How to prevent fields automatically extracted by DB Connect from being truncated? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-prevent-fields-automatically-extracted-by-DB-Connect-from/m-p/188170#M98467</link>
    <description>&lt;P&gt;Hello, we just started using dbconnect and both my users complain that field values extracted by Splunk are truncated.  These fields are length error messages from a database table that may contain practically any character.  It seems results get truncated sometimes at spaces, colons :, and CR/LF.   Any suggestions on how to debug this? &lt;/P&gt;</description>
    <pubDate>Wed, 20 Aug 2014 12:44:27 GMT</pubDate>
    <dc:creator>wsnyder2</dc:creator>
    <dc:date>2014-08-20T12:44:27Z</dc:date>
    <item>
      <title>How to prevent fields automatically extracted by DB Connect from being truncated?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-prevent-fields-automatically-extracted-by-DB-Connect-from/m-p/188170#M98467</link>
      <description>&lt;P&gt;Hello, we just started using dbconnect and both my users complain that field values extracted by Splunk are truncated.  These fields are length error messages from a database table that may contain practically any character.  It seems results get truncated sometimes at spaces, colons :, and CR/LF.   Any suggestions on how to debug this? &lt;/P&gt;</description>
      <pubDate>Wed, 20 Aug 2014 12:44:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-prevent-fields-automatically-extracted-by-DB-Connect-from/m-p/188170#M98467</guid>
      <dc:creator>wsnyder2</dc:creator>
      <dc:date>2014-08-20T12:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent fields automatically extracted by DB Connect from being truncated?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-prevent-fields-automatically-extracted-by-DB-Connect-from/m-p/188171#M98468</link>
      <description>&lt;P&gt;Any details you can share about your database and your query would be helpful.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Aug 2014 15:18:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-prevent-fields-automatically-extracted-by-DB-Connect-from/m-p/188171#M98468</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2014-08-20T15:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent fields automatically extracted by DB Connect from being truncated?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-prevent-fields-automatically-extracted-by-DB-Connect-from/m-p/188172#M98469</link>
      <description>&lt;P&gt;How long are the values that are getting truncated? Greater than 1024 characters? It's not uncommon for databases to truncate these, you can probably alter the SQL statement to fix it. &lt;/P&gt;</description>
      <pubDate>Wed, 20 Aug 2014 16:46:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-prevent-fields-automatically-extracted-by-DB-Connect-from/m-p/188172#M98469</guid>
      <dc:creator>jcoates_splunk</dc:creator>
      <dc:date>2014-08-20T16:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent fields automatically extracted by DB Connect from being truncated?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-prevent-fields-automatically-extracted-by-DB-Connect-from/m-p/188173#M98470</link>
      <description>&lt;P&gt;Thanks for the question.&lt;/P&gt;

&lt;P&gt;We have datasources reading from both Oracle and MSSQL.&lt;BR /&gt;
type = mssql, type = oracle, from database.conf&lt;/P&gt;

&lt;P&gt;Sample queries, from inputs.conf;&lt;BR /&gt;
mssql, query = select  ID, Date, Hostname, Level, Message, Thread, Logger, ActionId, Action, ActionContext, UserId, CompanyId, Exception,OtherInfo, CookieInfo \r\nfrom dbo.ErrorLog where ID &amp;gt; 31422354 {{AND $rising_column$ &amp;gt; ?}}&lt;/P&gt;

&lt;P&gt;oracle, query = SELECT * FROM SPR.V_IA_MESG_SPLUNK WHERE IAM_ID &amp;gt; 1020016850045340 {{AND $rising_column$ &amp;gt; ?}}&lt;/P&gt;

&lt;P&gt;These are working.  Events are being read into our Splunk indexers.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 17:23:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-prevent-fields-automatically-extracted-by-DB-Connect-from/m-p/188173#M98470</guid>
      <dc:creator>wsnyder2</dc:creator>
      <dc:date>2020-09-28T17:23:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent fields automatically extracted by DB Connect from being truncated?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-prevent-fields-automatically-extracted-by-DB-Connect-from/m-p/188174#M98471</link>
      <description>&lt;P&gt;Thank you for the suggestion.  I crafted the following search ...&lt;BR /&gt;
index=hro_prod sourcetype="dbmon:mkv" earliest="8/22/2014:07:15:00" latest="8/22/2014:07:25:00" Exception=* | eval a_len=len(Exception) | dedup a_len | table a_len&lt;/P&gt;

&lt;P&gt;when I run this (admin) I get, a_len: 57,109,214,81,184,34 ...  when my user runs this same search they get a_len: 24,59,33,25,34.    Very strange.  They don't get the same number of events .. they also don't get the same numbers.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 17:23:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-prevent-fields-automatically-extracted-by-DB-Connect-from/m-p/188174#M98471</guid>
      <dc:creator>wsnyder2</dc:creator>
      <dc:date>2020-09-28T17:23:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent fields automatically extracted by DB Connect from being truncated?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-prevent-fields-automatically-extracted-by-DB-Connect-from/m-p/188175#M98472</link>
      <description>&lt;P&gt;some additional information about this issue .. seems that those with admin role can see the entire fields,  those that are either user or power role, can't see the entire field.   The problem happens both with Oracle and MSSQL database reads.  We have confirmed/set permissions for sourtype= dbmon:mkv,  transforms = dbx-mkv&lt;/P&gt;</description>
      <pubDate>Tue, 26 Aug 2014 19:48:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-prevent-fields-automatically-extracted-by-DB-Connect-from/m-p/188175#M98472</guid>
      <dc:creator>wsnyder2</dc:creator>
      <dc:date>2014-08-26T19:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent fields automatically extracted by DB Connect from being truncated?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-prevent-fields-automatically-extracted-by-DB-Connect-from/m-p/188176#M98473</link>
      <description>&lt;P&gt;Dear  wsnyder2,&lt;/P&gt;

&lt;P&gt;A trick to avoid truncation is add in the dbquery double quotes if possible. So what I usually do is the following: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|dbquery db "select '\"'||tablefield||'\"' as tablefieldname from table " 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;in this way you have complete field without escaping. I don't like it but somehow it looks like it gets confuse splunk with it. &lt;/P&gt;

&lt;P&gt;I hope this helps you,&lt;BR /&gt;
Nadid&lt;/P&gt;</description>
      <pubDate>Fri, 04 Sep 2015 17:40:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-prevent-fields-automatically-extracted-by-DB-Connect-from/m-p/188176#M98473</guid>
      <dc:creator>nadid</dc:creator>
      <dc:date>2015-09-04T17:40:33Z</dc:date>
    </item>
  </channel>
</rss>

