<?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: Easiest method to extend pretrained sourcetype access_common to support X-forward-for? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Easiest-method-to-extend-pretrained-sourcetype-access-common-to/m-p/452280#M78387</link>
    <description>&lt;P&gt;we do not update any file in splunk\etc\system\default\, so you'd create a new app (to be deployed in splunk/etc/apps) with a props.conf and transforms.conf. The props.conf will have definition of your custom sourcetype and will point to transforms.conf which will have your custom field extraction for your custom sourcetype.&lt;/P&gt;</description>
    <pubDate>Fri, 16 Aug 2019 13:02:18 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2019-08-16T13:02:18Z</dc:date>
    <item>
      <title>Easiest method to extend pretrained sourcetype access_common to support X-forward-for?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Easiest-method-to-extend-pretrained-sourcetype-access-common-to/m-p/452277#M78384</link>
      <description>&lt;P&gt;The events indexed via Syslog and stripped for the prefixed date/time using SEDCMD is finally indexed by Splunk like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;192.777.77.77  95.66.66.66 - - [16/Aug/2019:11:34:50.962 +0000] "GET /favicon.ico HTTP/1.1" 404 6144
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Ok, it is a slight diff from what I see here &lt;A href="https://docs.splunk.com/Documentation/Splunk/7.3.1/Data/Listofpretrainedsourcetypes"&gt;https://docs.splunk.com/Documentation/Splunk/7.3.1/Data/Listofpretrainedsourcetypes&lt;/A&gt;, the example does not have the X-forward-for address&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;10.1.1.140 - - [16/May/2005:15:01:52 -0700] "GET /themes/ComBeta/images/bullet.png HTTP/1.1" 404 304
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Question is how do I extend access_common to support source ip and x-forward-for and also indexing the other fields as well?&lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2019 11:57:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Easiest-method-to-extend-pretrained-sourcetype-access-common-to/m-p/452277#M78384</guid>
      <dc:creator>rune_hellem</dc:creator>
      <dc:date>2019-08-16T11:57:09Z</dc:date>
    </item>
    <item>
      <title>Re: Easiest method to extend pretrained sourcetype access_common to support X-forward-for?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Easiest-method-to-extend-pretrained-sourcetype-access-common-to/m-p/452278#M78385</link>
      <description>&lt;P&gt;You can create your custom sourcetype by taking definition of pretained sourcetype access_common (you can use btool to find the config for pretained sourcetype e.g. line breaker, timestamp parsing and field extraction ) and use it to define your custom sourcetype with your modifications. Then update your data inputs to use this custom sourcetype explicitly.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2019 12:21:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Easiest-method-to-extend-pretrained-sourcetype-access-common-to/m-p/452278#M78385</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2019-08-16T12:21:55Z</dc:date>
    </item>
    <item>
      <title>Re: Easiest method to extend pretrained sourcetype access_common to support X-forward-for?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Easiest-method-to-extend-pretrained-sourcetype-access-common-to/m-p/452279#M78386</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;splunk btool props list access_common
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;showed me&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;REPORT-access = access-extractions
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;pointed me to the file &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;splunk\etc\system\default\transforms.conf
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And then I found some customizations a consultant had implemented for us years ago, so now I should try doing the same as him adding x-forward-for to my custom access_common&lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2019 12:55:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Easiest-method-to-extend-pretrained-sourcetype-access-common-to/m-p/452279#M78386</guid>
      <dc:creator>rune_hellem</dc:creator>
      <dc:date>2019-08-16T12:55:31Z</dc:date>
    </item>
    <item>
      <title>Re: Easiest method to extend pretrained sourcetype access_common to support X-forward-for?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Easiest-method-to-extend-pretrained-sourcetype-access-common-to/m-p/452280#M78387</link>
      <description>&lt;P&gt;we do not update any file in splunk\etc\system\default\, so you'd create a new app (to be deployed in splunk/etc/apps) with a props.conf and transforms.conf. The props.conf will have definition of your custom sourcetype and will point to transforms.conf which will have your custom field extraction for your custom sourcetype.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2019 13:02:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Easiest-method-to-extend-pretrained-sourcetype-access-common-to/m-p/452280#M78387</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2019-08-16T13:02:18Z</dc:date>
    </item>
    <item>
      <title>Re: Easiest method to extend pretrained sourcetype access_common to support X-forward-for?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Easiest-method-to-extend-pretrained-sourcetype-access-common-to/m-p/452281#M78388</link>
      <description>&lt;P&gt;This was how I ended up implemeting it - the first comment to my question by &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/15147"&gt;@somesoni2&lt;/a&gt; actually pointed me to previous customizations done by a Splunk consultant. &lt;/P&gt;

&lt;P&gt;As described in the comment&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;splunk btool props list access_common
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;showed me&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; REPORT-access = access-extractions
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;pointed me to the file&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; splunk\etc\system\default\transforms.conf
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And then I found some customizations a consultant had implemented for us years ago, so now I should try doing the same as him adding x-forward-for to my custom access_common. This customization is done in an app "TA-KLP", and not in the default app of Splunk. &lt;/P&gt;

&lt;P&gt;I created a custom sourcetype 'klp_access_common' and using the extract for access_common adjusted it to our own needs&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;REPORT-thread = extract-klp_access_common
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 30 Sep 2020 01:50:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Easiest-method-to-extend-pretrained-sourcetype-access-common-to/m-p/452281#M78388</guid>
      <dc:creator>rune_hellem</dc:creator>
      <dc:date>2020-09-30T01:50:12Z</dc:date>
    </item>
  </channel>
</rss>

