<?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: Coalesce and CIM Compliant Fields in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Coalesce-and-CIM-Compliant-Fields/m-p/240284#M46679</link>
    <description>&lt;P&gt;Is there a time where all fields will be the same?&lt;/P&gt;</description>
    <pubDate>Fri, 25 Sep 2015 21:19:21 GMT</pubDate>
    <dc:creator>domenico_perre</dc:creator>
    <dc:date>2015-09-25T21:19:21Z</dc:date>
    <item>
      <title>Coalesce and CIM Compliant Fields</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Coalesce-and-CIM-Compliant-Fields/m-p/240283#M46678</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;
From a reporting perspective, I have apache logs in a company standard format.  Due to load balancing configuration, we have 3 possible fields where the source ip is noted.&lt;/P&gt;

&lt;P&gt;These fields are as follows:&lt;BR /&gt;
clientip (standard source IP field)&lt;BR /&gt;
X_FORWARDED_IP (x-forwarded-for http header)&lt;BR /&gt;
ns_client_ip (load balancer's view of source ip)&lt;/P&gt;

&lt;P&gt;Since all 3 fields exist in sourcetype=access_combined (apache) logs, how do I coalesce the fields to "src" to make it CIM compliant?&lt;/P&gt;

&lt;P&gt;I will mention that Apache logs a hyphen "-" for null field values for the above too.&lt;/P&gt;

&lt;P&gt;Thanks for your help.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 07:22:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Coalesce-and-CIM-Compliant-Fields/m-p/240283#M46678</guid>
      <dc:creator>BP9906</dc:creator>
      <dc:date>2020-09-29T07:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: Coalesce and CIM Compliant Fields</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Coalesce-and-CIM-Compliant-Fields/m-p/240284#M46679</link>
      <description>&lt;P&gt;Is there a time where all fields will be the same?&lt;/P&gt;</description>
      <pubDate>Fri, 25 Sep 2015 21:19:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Coalesce-and-CIM-Compliant-Fields/m-p/240284#M46679</guid>
      <dc:creator>domenico_perre</dc:creator>
      <dc:date>2015-09-25T21:19:21Z</dc:date>
    </item>
    <item>
      <title>Re: Coalesce and CIM Compliant Fields</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Coalesce-and-CIM-Compliant-Fields/m-p/240285#M46680</link>
      <description>&lt;P&gt;The X_FORWARDED_IP commonly matches clientip or SOURCE_IP, but depending on the load balancer configuration either clientip is "-" or SOURCE_IP is "-", they never match.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 07:22:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Coalesce-and-CIM-Compliant-Fields/m-p/240285#M46680</guid>
      <dc:creator>BP9906</dc:creator>
      <dc:date>2020-09-29T07:22:34Z</dc:date>
    </item>
    <item>
      <title>Re: Coalesce and CIM Compliant Fields</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Coalesce-and-CIM-Compliant-Fields/m-p/240286#M46681</link>
      <description>&lt;P&gt;Regex is your friend .&lt;/P&gt;

&lt;P&gt;Create a search time field extraction for the following &lt;/P&gt;

&lt;P&gt;\d{1,3}.\d{1,3}.\d{1,3}.\d{1,3}&lt;/P&gt;

&lt;P&gt;This will grab the IP address. click extract new fields and then I prefer to write My own regex. &lt;/P&gt;</description>
      <pubDate>Fri, 25 Sep 2015 21:33:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Coalesce-and-CIM-Compliant-Fields/m-p/240286#M46681</guid>
      <dc:creator>domenico_perre</dc:creator>
      <dc:date>2015-09-25T21:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: Coalesce and CIM Compliant Fields</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Coalesce-and-CIM-Compliant-Fields/m-p/240287#M46682</link>
      <description>&lt;P&gt;Looks like the regex is being changed when I post, here is a working one&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Try this regex as a search time extraction.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Sep 2015 21:52:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Coalesce-and-CIM-Compliant-Fields/m-p/240287#M46682</guid>
      <dc:creator>domenico_perre</dc:creator>
      <dc:date>2015-09-25T21:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: Coalesce and CIM Compliant Fields</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Coalesce-and-CIM-Compliant-Fields/m-p/240288#M46683</link>
      <description>&lt;P&gt;The Regex is fine for IP addresses, but there's no if logic to assess which IP to use since its common to have both clientip and X_FORWARDED_IP present. &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 07:22:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Coalesce-and-CIM-Compliant-Fields/m-p/240288#M46683</guid>
      <dc:creator>BP9906</dc:creator>
      <dc:date>2020-09-29T07:22:39Z</dc:date>
    </item>
    <item>
      <title>Re: Coalesce and CIM Compliant Fields</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Coalesce-and-CIM-Compliant-Fields/m-p/240289#M46684</link>
      <description>&lt;P&gt;Can you put an example which may make it easier to understand &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 26 Sep 2015 11:00:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Coalesce-and-CIM-Compliant-Fields/m-p/240289#M46684</guid>
      <dc:creator>domenico_perre</dc:creator>
      <dc:date>2015-09-26T11:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: Coalesce and CIM Compliant Fields</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Coalesce-and-CIM-Compliant-Fields/m-p/240290#M46685</link>
      <description>&lt;P&gt;Inside props.conf do this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;EVAL-src = case((clientip != "-"), clientip,  (X_FORWARDED_IP != "-"), X_FORWARDED_IP, (ns_client_ip != "-"), ns_client_ip)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 28 Sep 2015 07:03:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Coalesce-and-CIM-Compliant-Fields/m-p/240290#M46685</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-09-28T07:03:57Z</dc:date>
    </item>
    <item>
      <title>Re: Coalesce and CIM Compliant Fields</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Coalesce-and-CIM-Compliant-Fields/m-p/240291#M46686</link>
      <description>&lt;P&gt;Thanks! Does this go on both indexer and search head?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2015 15:56:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Coalesce-and-CIM-Compliant-Fields/m-p/240291#M46686</guid>
      <dc:creator>BP9906</dc:creator>
      <dc:date>2015-09-29T15:56:45Z</dc:date>
    </item>
    <item>
      <title>Re: Coalesce and CIM Compliant Fields</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Coalesce-and-CIM-Compliant-Fields/m-p/240292#M46687</link>
      <description>&lt;P&gt;this is a search time settings so will have no effect on a indexer (but should be in a TA which will be deployed on both SH and IDX)&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2017 15:04:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Coalesce-and-CIM-Compliant-Fields/m-p/240292#M46687</guid>
      <dc:creator>maraman_splunk</dc:creator>
      <dc:date>2017-07-19T15:04:21Z</dc:date>
    </item>
  </channel>
</rss>

