<?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: How to create props.conf and transforms.conf to change the fields name of a CEF event in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-props-conf-and-transforms-conf-to-change-the/m-p/284791#M54404</link>
    <description>&lt;P&gt;thanks, I'm trying by now&lt;/P&gt;</description>
    <pubDate>Wed, 21 Oct 2015 08:13:28 GMT</pubDate>
    <dc:creator>Federica_92</dc:creator>
    <dc:date>2015-10-21T08:13:28Z</dc:date>
    <item>
      <title>How to create props.conf and transforms.conf to change the fields name of a CEF event</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-props-conf-and-transforms-conf-to-change-the/m-p/284787#M54400</link>
      <description>&lt;P&gt;Hi everyone, &lt;/P&gt;

&lt;P&gt;I'm receiving logs in arcsight format, for example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; &amp;lt;131&amp;gt;Oct  8 12:06:49 servename ASM:CEF:0|F5|ASM|11.5.3|Header name with no header value|HTTP protocol compliance failed|5|dvchost=servename dvc=x.x.x.x cs1=/Common/xxx cs1Label=policy_name cs2=/Common/xxx cs2Label=http_class_name deviceCustomDate1=Jul 03 2015 10:53:44 deviceCustomDate1Label=policy_apply_date externalId=8938493 act=alerted cn1=200 cn1Label=response_code src=x.x.x.x spt=45391 dst=x.x.x.x dpt=443 requestMethod=GET app=HTTPS cs5=N/A cs5Label=x_forwarded_for_header_value rt=Oct 08 2015 12:06:49 deviceExternalId=1 cs4=N/A cs4Label=attack_type cs6=IE cs6Label=geo_location c6a1= c6a1Label=device_address c6a2= c6a2Label=source_address c6a3= c6a3Label=destination_address c6a4=N/A c6a4Label=ip_address_intelligence msg=N/A ...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;splunk it's correctly extracting the field as:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;cn1=200 
cn1Label=response_code
cs4=attack_HTTP
labelcs4=attack_description
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But I need to change the name of the fields from cn1 to "response_code" and delete cn1Label, or from cs4 to "attack_description", and to delete cs4label, is there anyway to do this in the props.conf/transform.conf file? &lt;BR /&gt;
Could please someone help me?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 07:38:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-create-props-conf-and-transforms-conf-to-change-the/m-p/284787#M54400</guid>
      <dc:creator>Federica_92</dc:creator>
      <dc:date>2020-09-29T07:38:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to create props.conf and transforms.conf to change the fields name of a CEF event</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-props-conf-and-transforms-conf-to-change-the/m-p/284788#M54401</link>
      <description>&lt;P&gt;The only way to create index-time fields is to modify the raw event data itself before it gets indexed.  I highly advise you to NOT do this.  What you can do instead, is create search-time field aliases like this inside &lt;CODE&gt;props.conf&lt;/CODE&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[YourSourcetypeHere]
FIELDALIAS-acme = cn1 as response_code cs4 as attack_description
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 20 Oct 2015 16:23:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-create-props-conf-and-transforms-conf-to-change-the/m-p/284788#M54401</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-10-20T16:23:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to create props.conf and transforms.conf to change the fields name of a CEF event</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-props-conf-and-transforms-conf-to-change-the/m-p/284789#M54402</link>
      <description>&lt;P&gt;Is the value of cn1Label and cs4Lable field fixed, OR they can change?&lt;/P&gt;</description>
      <pubDate>Tue, 20 Oct 2015 16:33:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-create-props-conf-and-transforms-conf-to-change-the/m-p/284789#M54402</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2015-10-20T16:33:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to create props.conf and transforms.conf to change the fields name of a CEF event</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-props-conf-and-transforms-conf-to-change-the/m-p/284790#M54403</link>
      <description>&lt;P&gt;I just realized that there is another way to interpret your question.  Perhaps you are seeking to have a dynamic field creation based on these 4 fields such that this example set (which could be different for every event):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;cn1=200 
cn1Label=text_for_field_name_cn1
cs4=attack_HTTP
labelcs4=text_for_field_name_cs4
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Will morph to this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;text_for_field_name_cn1=200
text_for_field_name_cs4=attack_http
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;To do this, you need these configurations:&lt;/P&gt;

&lt;H3&gt;props.conf:&lt;/H3&gt;

&lt;PRE&gt;&lt;CODE&gt;[YourSourcetypeHere]
REPORT-swappy_KVP = swappy_KVP
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;H3&gt;transforms.conf:&lt;/H3&gt;

&lt;PRE&gt;&lt;CODE&gt;[swappy_KVP]
REGEX = =([^=]*)\s+[^=]*?Label=([\S]*)
FORMAT = $2::$1
MV_ADD = 1
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 20 Oct 2015 16:37:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-create-props-conf-and-transforms-conf-to-change-the/m-p/284790#M54403</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-10-20T16:37:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to create props.conf and transforms.conf to change the fields name of a CEF event</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-props-conf-and-transforms-conf-to-change-the/m-p/284791#M54404</link>
      <description>&lt;P&gt;thanks, I'm trying by now&lt;/P&gt;</description>
      <pubDate>Wed, 21 Oct 2015 08:13:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-create-props-conf-and-transforms-conf-to-change-the/m-p/284791#M54404</guid>
      <dc:creator>Federica_92</dc:creator>
      <dc:date>2015-10-21T08:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to create props.conf and transforms.conf to change the fields name of a CEF event</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-props-conf-and-transforms-conf-to-change-the/m-p/284792#M54405</link>
      <description>&lt;P&gt;I'm trying using this way, I did exactly as you wrote here so cn1 as response_code, but when I add the new logs in splunk the field name is not changing...&lt;BR /&gt;
I'm using a cluster, I placed the file under master-app/_cluster/local and next I did the bundle, could this be the reason of the problem?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 07:38:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-create-props-conf-and-transforms-conf-to-change-the/m-p/284792#M54405</guid>
      <dc:creator>Federica_92</dc:creator>
      <dc:date>2020-09-29T07:38:53Z</dc:date>
    </item>
  </channel>
</rss>

