<?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: DB Connect Column Aliases in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/DB-Connect-Column-Aliases/m-p/98371#M22814</link>
    <description>&lt;P&gt;Do not be resolved in a way and a separate column by editing the column?&lt;/P&gt;

&lt;P&gt;ex.&lt;BR /&gt;
| dbquery mysql01 limit=1000 "select users.id+0  as user_id from users"&lt;/P&gt;

&lt;P&gt;(result)&lt;BR /&gt;
user_id&lt;BR /&gt;
1&lt;BR /&gt;
2&lt;BR /&gt;
3&lt;/P&gt;

&lt;P&gt;How about now?&lt;BR /&gt;
SELECT DISTINCT issuestatus.pname+"" AS "Status" FROM issuestatus&lt;/P&gt;</description>
    <pubDate>Mon, 19 Aug 2013 01:55:29 GMT</pubDate>
    <dc:creator>HiroshiSatoh</dc:creator>
    <dc:date>2013-08-19T01:55:29Z</dc:date>
    <item>
      <title>DB Connect Column Aliases</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/DB-Connect-Column-Aliases/m-p/98366#M22809</link>
      <description>&lt;P&gt;Is anyone having an issues with assigning column aliases in a mysql db?&lt;/P&gt;

&lt;P&gt;SELECT DISTINCT&lt;BR /&gt;
       issuestatus.pname AS "Status"&lt;BR /&gt;
FROM issuestatus&lt;/P&gt;

&lt;P&gt;pname&lt;BR /&gt;
1   Open&lt;BR /&gt;
2   Assigned&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2013 18:04:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/DB-Connect-Column-Aliases/m-p/98366#M22809</guid>
      <dc:creator>arrowsmith3</dc:creator>
      <dc:date>2013-04-17T18:04:53Z</dc:date>
    </item>
    <item>
      <title>Re: DB Connect Column Aliases</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/DB-Connect-Column-Aliases/m-p/98367#M22810</link>
      <description>&lt;P&gt;Yes, I got the same problem! Perhaps the parser is not considering convert the alias from SQL to SPL, I think...&lt;/P&gt;

&lt;P&gt;SELECT user as username FROM mysql.user WHERE user='root';&lt;/P&gt;

&lt;P&gt;Database Results&lt;BR /&gt;
    User&lt;BR /&gt;
1   root&lt;BR /&gt;
2   root&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2013 22:34:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/DB-Connect-Column-Aliases/m-p/98367#M22810</guid>
      <dc:creator>wagnerbianchi</dc:creator>
      <dc:date>2013-04-18T22:34:46Z</dc:date>
    </item>
    <item>
      <title>Re: DB Connect Column Aliases</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/DB-Connect-Column-Aliases/m-p/98368#M22811</link>
      <description>&lt;P&gt;You need to escape the quotes that are used in the column alias. &lt;BR /&gt;
| dbquery "database" "SELECT DISTINCT issuestatus.pname AS \"Status\" FROM issuestatus"&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2013 21:11:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/DB-Connect-Column-Aliases/m-p/98368#M22811</guid>
      <dc:creator>Sammich</dc:creator>
      <dc:date>2013-06-06T21:11:31Z</dc:date>
    </item>
    <item>
      <title>Re: DB Connect Column Aliases</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/DB-Connect-Column-Aliases/m-p/98369#M22812</link>
      <description>&lt;P&gt;I tried escaping the quotes as suggested, but it didn't fix the problem for me. Any other suggestions?&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2013 22:35:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/DB-Connect-Column-Aliases/m-p/98369#M22812</guid>
      <dc:creator>vrmerlin</dc:creator>
      <dc:date>2013-07-03T22:35:26Z</dc:date>
    </item>
    <item>
      <title>Re: DB Connect Column Aliases</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/DB-Connect-Column-Aliases/m-p/98370#M22813</link>
      <description>&lt;P&gt;I am having a same problem as well with using the 'AS' in select statement.&lt;/P&gt;

&lt;P&gt;You cannot join multiple tables that has same column names if you cant &lt;BR /&gt;
use the AS.&lt;/P&gt;

&lt;P&gt;I hope there is a solution for this.&lt;/P&gt;</description>
      <pubDate>Sat, 17 Aug 2013 01:21:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/DB-Connect-Column-Aliases/m-p/98370#M22813</guid>
      <dc:creator>yuwtennis</dc:creator>
      <dc:date>2013-08-17T01:21:03Z</dc:date>
    </item>
    <item>
      <title>Re: DB Connect Column Aliases</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/DB-Connect-Column-Aliases/m-p/98371#M22814</link>
      <description>&lt;P&gt;Do not be resolved in a way and a separate column by editing the column?&lt;/P&gt;

&lt;P&gt;ex.&lt;BR /&gt;
| dbquery mysql01 limit=1000 "select users.id+0  as user_id from users"&lt;/P&gt;

&lt;P&gt;(result)&lt;BR /&gt;
user_id&lt;BR /&gt;
1&lt;BR /&gt;
2&lt;BR /&gt;
3&lt;/P&gt;

&lt;P&gt;How about now?&lt;BR /&gt;
SELECT DISTINCT issuestatus.pname+"" AS "Status" FROM issuestatus&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2013 01:55:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/DB-Connect-Column-Aliases/m-p/98371#M22814</guid>
      <dc:creator>HiroshiSatoh</dc:creator>
      <dc:date>2013-08-19T01:55:29Z</dc:date>
    </item>
    <item>
      <title>Re: DB Connect Column Aliases</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/DB-Connect-Column-Aliases/m-p/98372#M22815</link>
      <description>&lt;P&gt;Anyone ever find a solution for this?&lt;/P&gt;</description>
      <pubDate>Fri, 20 Dec 2013 20:18:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/DB-Connect-Column-Aliases/m-p/98372#M22815</guid>
      <dc:creator>rdevine</dc:creator>
      <dc:date>2013-12-20T20:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: DB Connect Column Aliases</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/DB-Connect-Column-Aliases/m-p/98373#M22816</link>
      <description>&lt;P&gt;Did you attempt to exclude the quotes around the Status?&lt;/P&gt;</description>
      <pubDate>Fri, 20 Dec 2013 22:49:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/DB-Connect-Column-Aliases/m-p/98373#M22816</guid>
      <dc:creator>aelliott</dc:creator>
      <dc:date>2013-12-20T22:49:29Z</dc:date>
    </item>
    <item>
      <title>Re: DB Connect Column Aliases</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/DB-Connect-Column-Aliases/m-p/98374#M22817</link>
      <description>&lt;P&gt;I think I found the root cause of this problem in the README notes for MySQL J connector 5.1.x which states that .getColumnName() now always returns the original column name and the caller must use .getColumnLabel() to get the alias.&lt;/P&gt;

&lt;P&gt;Downgrading from 5.1.4 to 3.14 solved the problem for me, although I'm sure it will cause other problems down the road. I have reported the issue to Splunk via our dealer.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jul 2014 11:22:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/DB-Connect-Column-Aliases/m-p/98374#M22817</guid>
      <dc:creator>FloydATC</dc:creator>
      <dc:date>2014-07-17T11:22:16Z</dc:date>
    </item>
    <item>
      <title>Re: DB Connect Column Aliases</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/DB-Connect-Column-Aliases/m-p/98375#M22818</link>
      <description>&lt;P&gt;If this is in the Database Input or Database Query feature - I found a workaround for this.  Simply cast all the fields and it should work.&lt;/P&gt;

&lt;P&gt;SELECT DISTINCT CAST(issuestatus.pname AS Char(32)) AS Status FROM issuestatus&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jul 2014 23:16:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/DB-Connect-Column-Aliases/m-p/98375#M22818</guid>
      <dc:creator>AvianFLU</dc:creator>
      <dc:date>2014-07-24T23:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: DB Connect Column Aliases</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/DB-Connect-Column-Aliases/m-p/98376#M22819</link>
      <description>&lt;P&gt;This workaround, well, works! I've been looking for a way to get aliases working for ages now and this finally does it. Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jul 2014 14:30:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/DB-Connect-Column-Aliases/m-p/98376#M22819</guid>
      <dc:creator>monkey</dc:creator>
      <dc:date>2014-07-25T14:30:06Z</dc:date>
    </item>
  </channel>
</rss>

