<?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: rename fields having the same name in JOIN command in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-rename-fields-having-the-same-name-in-JOIN-command/m-p/511658#M143458</link>
    <description>&lt;P&gt;It's often useful in Splunk to consider how you would do this without using join.&lt;/P&gt;&lt;P&gt;Typically to avoid join, you would include both data sets in the original search and then do aggregations on those as needed.&lt;/P&gt;&lt;P&gt;So, if you just had search A OR search B you would then be able to use&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/214410"&gt;@isoutamo&lt;/a&gt;&amp;nbsp;'s chart statement to render the results.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 29 Jul 2020 23:13:09 GMT</pubDate>
    <dc:creator>bowesmana</dc:creator>
    <dc:date>2020-07-29T23:13:09Z</dc:date>
    <item>
      <title>How to rename fields having the same name in JOIN command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-rename-fields-having-the-same-name-in-JOIN-command/m-p/511552#M143408</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am executing a &lt;STRONG&gt;right join&lt;/STRONG&gt; on two searches. Unfortunately, both search results have the same field names.&lt;/P&gt;
&lt;P&gt;How can I rename the field of one search only, and not the other, in order to be able to display these values in a table?&lt;/P&gt;
&lt;P&gt;Example&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Search A: 
Order_id = 123
Operation = authorize
Result = 200

Search B:
Order_id = 123
Operation = secure
Result = 200&lt;/LI-CODE&gt;
&lt;P&gt;I want to right join Search A to Search B in order to obtain:&lt;/P&gt;
&lt;TABLE border="1" width="24.967824967824967%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;order_id&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;authorize&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;secure&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;123&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;200&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;200&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jul 2020 05:00:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-rename-fields-having-the-same-name-in-JOIN-command/m-p/511552#M143408</guid>
      <dc:creator>piscriddo</dc:creator>
      <dc:date>2020-07-30T05:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: rename fields having the same name in JOIN command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-rename-fields-having-the-same-name-in-JOIN-command/m-p/511566#M143409</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;you could try this:&lt;/P&gt;&lt;LI-CODE lang="java"&gt;| makeresults
| eval _raw="order_id, Operation, Result
123, authorize, 200
123, secure, 200" 
| multikv forceheader=1
| rename COMMENT as "prepare sample data"
| chart values(Result) as Result over order_id by Operation&lt;/LI-CODE&gt;&lt;P&gt;r. Ismo&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jul 2020 16:08:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-rename-fields-having-the-same-name-in-JOIN-command/m-p/511566#M143409</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2020-07-29T16:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: rename fields having the same name in JOIN command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-rename-fields-having-the-same-name-in-JOIN-command/m-p/511658#M143458</link>
      <description>&lt;P&gt;It's often useful in Splunk to consider how you would do this without using join.&lt;/P&gt;&lt;P&gt;Typically to avoid join, you would include both data sets in the original search and then do aggregations on those as needed.&lt;/P&gt;&lt;P&gt;So, if you just had search A OR search B you would then be able to use&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/214410"&gt;@isoutamo&lt;/a&gt;&amp;nbsp;'s chart statement to render the results.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jul 2020 23:13:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-rename-fields-having-the-same-name-in-JOIN-command/m-p/511658#M143458</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2020-07-29T23:13:09Z</dc:date>
    </item>
  </channel>
</rss>

