<?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 Field Extractions Never Appear in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Field-Extractions-Never-Appear/m-p/105542#M27357</link>
    <description>&lt;P&gt;Starting a new project with Adobe's CQ5...&lt;/P&gt;

&lt;P&gt;I'm starting with the access log, as it is straight forward.&lt;/P&gt;

&lt;P&gt;I've done field extractions before for another custom log type, worked great.  Now, I can't seem to get any of my extractions appear in the Search.&lt;/P&gt;

&lt;P&gt;Walkthrough:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;Created an index called &lt;STRONG&gt;adobe_cq5&lt;/STRONG&gt;.&lt;/LI&gt;
&lt;LI&gt;Created various "file" type data inputs using various CQ5 log files, setting the index to &lt;STRONG&gt;adobe_cq5&lt;/STRONG&gt;.  The one I started with is called &lt;STRONG&gt;cq5-access&lt;/STRONG&gt;.&lt;/LI&gt;
&lt;LI&gt;Go into Search and verify that I'm getting good data, which I am.&lt;/LI&gt;
&lt;LI&gt;Select the drop down next to the first log line and click &lt;STRONG&gt;Extract Fields&lt;/STRONG&gt;.&lt;/LI&gt;
&lt;LI&gt;Under Generated Pattern, click &lt;STRONG&gt;Edit&lt;/STRONG&gt;.&lt;/LI&gt;
&lt;LI&gt;Put in a basic regex: &lt;CODE&gt;^(?P&amp;lt;FIELDNAME&amp;gt;\d+\.\d+\.\d+\.\d+?)&lt;/CODE&gt; &lt;/LI&gt;
&lt;LI&gt;Click "Apply"&lt;/LI&gt;
&lt;LI&gt;Check several lines to make sure the IP addresses are selected.&lt;/LI&gt;
&lt;LI&gt;Click "Save"&lt;/LI&gt;
&lt;LI&gt;In "Save Field Extraction" enter ip_address for the field name.&lt;/LI&gt;
&lt;LI&gt;Click "Save"&lt;/LI&gt;
&lt;LI&gt;Click "Close" on "Successfully Saved" dialog.&lt;/LI&gt;
&lt;LI&gt;Reload the Search page.&lt;/LI&gt;
&lt;LI&gt;Note that ip_address is not appearing in the log line list as it has for past projects.&lt;/LI&gt;
&lt;LI&gt;Click "Pick fields"&lt;/LI&gt;
&lt;LI&gt;Note that ip_address does not appear in Available Fields.&lt;/LI&gt;
&lt;LI&gt;Go back to &lt;STRONG&gt;Extract Fields&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;Enter in: &lt;CODE&gt;^(?P&amp;lt;FIELDNAME&amp;gt;\d+\.\d+\.\d+\.\d+?)&lt;/CODE&gt;&lt;/LI&gt;
&lt;LI&gt;Get two errors:&lt;/LI&gt;
&lt;LI&gt;--Note: the values you want may already be extracted in the 'ip_address' field.&lt;/LI&gt;
&lt;LI&gt;--Note: This regex already extracts ip_address for cq5-access.&lt;/LI&gt;
&lt;LI&gt;Close out of &lt;STRONG&gt;Extract Fields&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;Browse to Manager » Fields » Field extractions &lt;/LI&gt;
&lt;LI&gt;Verify extraction:  cq5-access : EXTRACT-ip_address &lt;/LI&gt;
&lt;LI&gt;Click Permissions give Everyone Read Permission and set  Object should appear in This app only (search)&lt;/LI&gt;
&lt;LI&gt;Click Save&lt;/LI&gt;
&lt;LI&gt;Re-Check the search page, ip_address still does not appear.&lt;/LI&gt;
&lt;LI&gt;Open up terminal&lt;/LI&gt;
&lt;LI&gt;cat: /opt/splunk/etc/apps/search/local/props.conf&lt;/LI&gt;
&lt;LI&gt;Verify extraction: EXTRACT-ip_address = &lt;CODE&gt;^(?P&amp;lt;ip_address&amp;gt;\d+\.\d+\.\d+\.\d+?)&lt;/CODE&gt;&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;For my last project, I simply entered the &lt;STRONG&gt;Extract Fields&lt;/STRONG&gt; tool, entered my regex, saved and the data appeared right in the Search.&lt;/P&gt;

&lt;P&gt;props.conf for modified extraction&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[cq5-access]
EXTRACT-ip_address = ^(?P&amp;lt;ip_address&amp;gt;\d+\.\d+\.\d+\.\d+?)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;props.conf with original full extraction&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[cq5-access]
EXTRACT-ip_address-username-day-month-year-hour-minute-second-http_type-http_request-http_code-referer-user_agent = ^(?P&amp;lt;ip_address&amp;gt;\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})\s.+?\s(?P&amp;lt;username&amp;gt;.+?)\s(?P&amp;lt;day&amp;gt;\d\d)/(?P&amp;lt;month&amp;gt;\w\w\w)/(?P&amp;lt;year&amp;gt;\d\d\d\d):(?P&amp;lt;hour&amp;gt;\d\d):(?P&amp;lt;minute&amp;gt;\d\d):(?P&amp;lt;second&amp;gt;\d\d)\s.+?\s"(?P&amp;lt;http_type&amp;gt;\w+?)\s(?P&amp;lt;http_request&amp;gt;.+?)\sHTTP.+?"\s(?&amp;lt;http_code&amp;gt;\d+?)\s.+?\s"(?P&amp;lt;referer&amp;gt;.+?)"\s"(?P&amp;lt;user_agent&amp;gt;.+?)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Sample data:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;10.71.40.57 - admin 23/Apr/2013:16:15:14 -0400 "GET /crx/server/crx.default/jcr%3aroot/etc/map/http.1.json?_dc=1366748119022&amp;amp;node=xnode-339 HTTP/1.1" 200 175 "https://twcc-ci01.lab.webapps.rr.com:4602/crx/de/index.jsp" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:20.0) Gecko/20100101 Firefox/20.0"
10.71.40.57 - admin 23/Apr/2013:16:15:13 -0400 "GET /crx/de/icons/crxde_favicon.ico HTTP/1.1" 200 295606 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:20.0) Gecko/20100101 Firefox/20.0"
127.0.0.1 - admin 23/Apr/2013:16:42:31 -0400 "GET /bin/receive?sling:authRequestLogin=1 HTTP/1.1" 200 32 "-" "Jakarta Commons-HttpClient/3.1"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 28 Sep 2020 13:47:15 GMT</pubDate>
    <dc:creator>vbrtrmn</dc:creator>
    <dc:date>2020-09-28T13:47:15Z</dc:date>
    <item>
      <title>Field Extractions Never Appear</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-Extractions-Never-Appear/m-p/105542#M27357</link>
      <description>&lt;P&gt;Starting a new project with Adobe's CQ5...&lt;/P&gt;

&lt;P&gt;I'm starting with the access log, as it is straight forward.&lt;/P&gt;

&lt;P&gt;I've done field extractions before for another custom log type, worked great.  Now, I can't seem to get any of my extractions appear in the Search.&lt;/P&gt;

&lt;P&gt;Walkthrough:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;Created an index called &lt;STRONG&gt;adobe_cq5&lt;/STRONG&gt;.&lt;/LI&gt;
&lt;LI&gt;Created various "file" type data inputs using various CQ5 log files, setting the index to &lt;STRONG&gt;adobe_cq5&lt;/STRONG&gt;.  The one I started with is called &lt;STRONG&gt;cq5-access&lt;/STRONG&gt;.&lt;/LI&gt;
&lt;LI&gt;Go into Search and verify that I'm getting good data, which I am.&lt;/LI&gt;
&lt;LI&gt;Select the drop down next to the first log line and click &lt;STRONG&gt;Extract Fields&lt;/STRONG&gt;.&lt;/LI&gt;
&lt;LI&gt;Under Generated Pattern, click &lt;STRONG&gt;Edit&lt;/STRONG&gt;.&lt;/LI&gt;
&lt;LI&gt;Put in a basic regex: &lt;CODE&gt;^(?P&amp;lt;FIELDNAME&amp;gt;\d+\.\d+\.\d+\.\d+?)&lt;/CODE&gt; &lt;/LI&gt;
&lt;LI&gt;Click "Apply"&lt;/LI&gt;
&lt;LI&gt;Check several lines to make sure the IP addresses are selected.&lt;/LI&gt;
&lt;LI&gt;Click "Save"&lt;/LI&gt;
&lt;LI&gt;In "Save Field Extraction" enter ip_address for the field name.&lt;/LI&gt;
&lt;LI&gt;Click "Save"&lt;/LI&gt;
&lt;LI&gt;Click "Close" on "Successfully Saved" dialog.&lt;/LI&gt;
&lt;LI&gt;Reload the Search page.&lt;/LI&gt;
&lt;LI&gt;Note that ip_address is not appearing in the log line list as it has for past projects.&lt;/LI&gt;
&lt;LI&gt;Click "Pick fields"&lt;/LI&gt;
&lt;LI&gt;Note that ip_address does not appear in Available Fields.&lt;/LI&gt;
&lt;LI&gt;Go back to &lt;STRONG&gt;Extract Fields&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;Enter in: &lt;CODE&gt;^(?P&amp;lt;FIELDNAME&amp;gt;\d+\.\d+\.\d+\.\d+?)&lt;/CODE&gt;&lt;/LI&gt;
&lt;LI&gt;Get two errors:&lt;/LI&gt;
&lt;LI&gt;--Note: the values you want may already be extracted in the 'ip_address' field.&lt;/LI&gt;
&lt;LI&gt;--Note: This regex already extracts ip_address for cq5-access.&lt;/LI&gt;
&lt;LI&gt;Close out of &lt;STRONG&gt;Extract Fields&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;Browse to Manager » Fields » Field extractions &lt;/LI&gt;
&lt;LI&gt;Verify extraction:  cq5-access : EXTRACT-ip_address &lt;/LI&gt;
&lt;LI&gt;Click Permissions give Everyone Read Permission and set  Object should appear in This app only (search)&lt;/LI&gt;
&lt;LI&gt;Click Save&lt;/LI&gt;
&lt;LI&gt;Re-Check the search page, ip_address still does not appear.&lt;/LI&gt;
&lt;LI&gt;Open up terminal&lt;/LI&gt;
&lt;LI&gt;cat: /opt/splunk/etc/apps/search/local/props.conf&lt;/LI&gt;
&lt;LI&gt;Verify extraction: EXTRACT-ip_address = &lt;CODE&gt;^(?P&amp;lt;ip_address&amp;gt;\d+\.\d+\.\d+\.\d+?)&lt;/CODE&gt;&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;For my last project, I simply entered the &lt;STRONG&gt;Extract Fields&lt;/STRONG&gt; tool, entered my regex, saved and the data appeared right in the Search.&lt;/P&gt;

&lt;P&gt;props.conf for modified extraction&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[cq5-access]
EXTRACT-ip_address = ^(?P&amp;lt;ip_address&amp;gt;\d+\.\d+\.\d+\.\d+?)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;props.conf with original full extraction&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[cq5-access]
EXTRACT-ip_address-username-day-month-year-hour-minute-second-http_type-http_request-http_code-referer-user_agent = ^(?P&amp;lt;ip_address&amp;gt;\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})\s.+?\s(?P&amp;lt;username&amp;gt;.+?)\s(?P&amp;lt;day&amp;gt;\d\d)/(?P&amp;lt;month&amp;gt;\w\w\w)/(?P&amp;lt;year&amp;gt;\d\d\d\d):(?P&amp;lt;hour&amp;gt;\d\d):(?P&amp;lt;minute&amp;gt;\d\d):(?P&amp;lt;second&amp;gt;\d\d)\s.+?\s"(?P&amp;lt;http_type&amp;gt;\w+?)\s(?P&amp;lt;http_request&amp;gt;.+?)\sHTTP.+?"\s(?&amp;lt;http_code&amp;gt;\d+?)\s.+?\s"(?P&amp;lt;referer&amp;gt;.+?)"\s"(?P&amp;lt;user_agent&amp;gt;.+?)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Sample data:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;10.71.40.57 - admin 23/Apr/2013:16:15:14 -0400 "GET /crx/server/crx.default/jcr%3aroot/etc/map/http.1.json?_dc=1366748119022&amp;amp;node=xnode-339 HTTP/1.1" 200 175 "https://twcc-ci01.lab.webapps.rr.com:4602/crx/de/index.jsp" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:20.0) Gecko/20100101 Firefox/20.0"
10.71.40.57 - admin 23/Apr/2013:16:15:13 -0400 "GET /crx/de/icons/crxde_favicon.ico HTTP/1.1" 200 295606 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:20.0) Gecko/20100101 Firefox/20.0"
127.0.0.1 - admin 23/Apr/2013:16:42:31 -0400 "GET /bin/receive?sling:authRequestLogin=1 HTTP/1.1" 200 32 "-" "Jakarta Commons-HttpClient/3.1"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:47:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-Extractions-Never-Appear/m-p/105542#M27357</guid>
      <dc:creator>vbrtrmn</dc:creator>
      <dc:date>2020-09-28T13:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: Field Extractions Never Appear</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-Extractions-Never-Appear/m-p/105543#M27358</link>
      <description>&lt;P&gt;Is &lt;CODE&gt;cq5-access&lt;/CODE&gt; the &lt;CODE&gt;sourcetype&lt;/CODE&gt; or a filename you're reading? &lt;/P&gt;

&lt;P&gt;I'd try to use underscores instead of dashes in all names (sourcetypes, fields, anything), where possible. There have been issues with these not showing up when names have contained dashes.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://splunk-base.splunk.com/answers/48611/bug-in-interactive-field-extractor-ifx"&gt;http://splunk-base.splunk.com/answers/48611/bug-in-interactive-field-extractor-ifx&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;/K&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2013 06:54:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-Extractions-Never-Appear/m-p/105543#M27358</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2013-04-25T06:54:56Z</dc:date>
    </item>
    <item>
      <title>Re: Field Extractions Never Appear</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-Extractions-Never-Appear/m-p/105544#M27359</link>
      <description>&lt;P&gt;This isn't necessarily related to your problem, but I don't think your regex will give you the expected results.  You have a lazy (?) modifier at the end of your regex will should cause the last section of your IP Address to stop at only 1 digit, so if you have an IP that ends with 2 or 3 digits you won't get those.  I believe the ip_address extraction in the original full extraction will work better.&lt;BR /&gt;&lt;BR /&gt;
Also, I've seen some unexpected results in Splunk when using the start of line character (^) so I try where possible not to use them.  Here is a modified regex that removes the ^ (I look for the pattern following that IP in your example data instead) and updates the lazy modifier.  Give it a shot...&lt;/P&gt;

&lt;P&gt;(?P&amp;lt;ip_address&amp;gt;\d{1,3}.\d{1,3}.\d{1,3}.\d{1,3})\s-&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2013 17:28:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-Extractions-Never-Appear/m-p/105544#M27359</guid>
      <dc:creator>jklumpp_splunk</dc:creator>
      <dc:date>2013-04-30T17:28:26Z</dc:date>
    </item>
    <item>
      <title>Re: Field Extractions Never Appear</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-Extractions-Never-Appear/m-p/105545#M27360</link>
      <description>&lt;P&gt;this is correct.  as an example:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;BLOCKQUOTE&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;import re&lt;BR /&gt;
re.findall('^(?P&lt;IP_ADDRESS&gt;\d+.\d+.\d+.\d+?)', '10.71.40.57 -')&lt;BR /&gt;
['10.71.40.5']&lt;BR /&gt;
re.findall('^(?P&lt;IP_ADDRESS&gt;\d+.\d+.\d+.\d+)', '10.71.40.57 -')&lt;BR /&gt;
['10.71.40.57']&lt;/IP_ADDRESS&gt;&lt;/IP_ADDRESS&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Tue, 30 Apr 2013 17:46:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-Extractions-Never-Appear/m-p/105545#M27360</guid>
      <dc:creator>carasso</dc:creator>
      <dc:date>2013-04-30T17:46:30Z</dc:date>
    </item>
  </channel>
</rss>

