<?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: about Extract the field in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/about-Extract-the-field/m-p/295141#M89082</link>
    <description>&lt;P&gt;If you have a pattern matching all the five sources, then set the EXTRACT at source level in props.conf.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::...*apache_access*]
EXTRACT-field = ....
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 16 May 2017 09:22:36 GMT</pubDate>
    <dc:creator>dineshraj9</dc:creator>
    <dc:date>2017-05-16T09:22:36Z</dc:date>
    <item>
      <title>about Extract the field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/about-Extract-the-field/m-p/295140#M89081</link>
      <description>&lt;P&gt;This is a problem that occurs on the cluster&lt;/P&gt;

&lt;P&gt;I have a index is "apache_access"，It mainly collects apache access information.&lt;/P&gt;

&lt;P&gt;Its events come from multiple hosts of the apache log.&lt;/P&gt;

&lt;P&gt;so  their sourcetype is not the same,  now ,There are now 5 sourcetype&lt;/P&gt;

&lt;P&gt;Now 。I'm going to extract the fields of the apache access log, which requires me to choose a source type. But there is only one source type, and other source types are not shown。&lt;/P&gt;

&lt;P&gt;If i chose this sourcetype, then I extracted the field can only be applied to this sourcetype&lt;/P&gt;

&lt;P&gt;question:&lt;/P&gt;

&lt;P&gt;How can I extract a field that can be applied to all sourcetype on the apache_access index&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/2932iDE65FD70F4D1610B/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/2933iE8369A3807A243F8/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2017 08:43:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/about-Extract-the-field/m-p/295140#M89081</guid>
      <dc:creator>xsstest</dc:creator>
      <dc:date>2017-05-16T08:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: about Extract the field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/about-Extract-the-field/m-p/295141#M89082</link>
      <description>&lt;P&gt;If you have a pattern matching all the five sources, then set the EXTRACT at source level in props.conf.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::...*apache_access*]
EXTRACT-field = ....
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 16 May 2017 09:22:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/about-Extract-the-field/m-p/295141#M89082</guid>
      <dc:creator>dineshraj9</dc:creator>
      <dc:date>2017-05-16T09:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: about Extract the field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/about-Extract-the-field/m-p/295142#M89083</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;From my point of view, as long as all the logs from different hosts have he same format, so you can assign the same sourcetype for all hosts.&lt;/P&gt;

&lt;P&gt;To have sourcetype selected in field extraction page, try to launch the filed extraction ( at the bottom of the side bar) after you have run this search for example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=apache_access sourcetype=web2_apache_access
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2017 11:12:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/about-Extract-the-field/m-p/295142#M89083</guid>
      <dc:creator>aakwah</dc:creator>
      <dc:date>2017-05-16T11:12:58Z</dc:date>
    </item>
  </channel>
</rss>

