<?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 can I rename fields based on source? in Knowledge Management</title>
    <link>https://community.splunk.com/t5/Knowledge-Management/How-can-I-rename-fields-based-on-source/m-p/321472#M2771</link>
    <description>&lt;P&gt;I have data coming in from two different sources wich both contains the same fieldname.&lt;BR /&gt;
how can I tell them apart in a search.&lt;/P&gt;

&lt;P&gt;For example:&lt;BR /&gt;
source1 have a field named ID and so does source2.&lt;BR /&gt;
How can I rename the ID from source1 to ID1 and the ID from source2 to ID2?&lt;/P&gt;</description>
    <pubDate>Mon, 23 Oct 2017 11:47:28 GMT</pubDate>
    <dc:creator>snorri</dc:creator>
    <dc:date>2017-10-23T11:47:28Z</dc:date>
    <item>
      <title>How can I rename fields based on source?</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/How-can-I-rename-fields-based-on-source/m-p/321472#M2771</link>
      <description>&lt;P&gt;I have data coming in from two different sources wich both contains the same fieldname.&lt;BR /&gt;
how can I tell them apart in a search.&lt;/P&gt;

&lt;P&gt;For example:&lt;BR /&gt;
source1 have a field named ID and so does source2.&lt;BR /&gt;
How can I rename the ID from source1 to ID1 and the ID from source2 to ID2?&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2017 11:47:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/How-can-I-rename-fields-based-on-source/m-p/321472#M2771</guid>
      <dc:creator>snorri</dc:creator>
      <dc:date>2017-10-23T11:47:28Z</dc:date>
    </item>
    <item>
      <title>Re: How can I rename fields based on source?</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/How-can-I-rename-fields-based-on-source/m-p/321473#M2772</link>
      <description>&lt;P&gt;try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|eval ID1=if(source="source1",ID,null())
|eval ID2=if(source="source2",ID,null())
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;you could create an Event Type/Tag for these, so you don't have to keep distinguishing them in each search. Go to Settings&amp;gt;Event types&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/7.0.0/Knowledge/Abouteventtypes"&gt;http://docs.splunk.com/Documentation/Splunk/7.0.0/Knowledge/Abouteventtypes&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2017 12:29:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/How-can-I-rename-fields-based-on-source/m-p/321473#M2772</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2017-10-23T12:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: How can I rename fields based on source?</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/How-can-I-rename-fields-based-on-source/m-p/321474#M2773</link>
      <description>&lt;P&gt;HI snorri,&lt;BR /&gt;
if they are different sourcetype you can set an alias or a calculated field for one of the flows:&lt;BR /&gt;
[Settings -- Fields -- Field Alias -- New ] setting the alias for that sourcetype.&lt;/P&gt;

&lt;P&gt;If you have the same sourcetype you can use the same way using source instead sourcetype.&lt;/P&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2017 12:34:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/How-can-I-rename-fields-based-on-source/m-p/321474#M2773</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-10-23T12:34:36Z</dc:date>
    </item>
  </channel>
</rss>

