<?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: Field Extraction in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Field-Extraction/m-p/574479#M200202</link>
    <description>&lt;P&gt;I'm a moron. I just copied yours over and it worked. Thanks for sticking with me. I'll mark it as the answer.&lt;/P&gt;</description>
    <pubDate>Wed, 10 Nov 2021 19:01:34 GMT</pubDate>
    <dc:creator>jeck11</dc:creator>
    <dc:date>2021-11-10T19:01:34Z</dc:date>
    <item>
      <title>Field Extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-Extraction/m-p/574445#M200184</link>
      <description>&lt;P&gt;This has been asked a million times. I've been digging through the various postings but haven't figured out what I'm doing wrong.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm able to do a search time extraction using the rex command to get a field exactly the way I want it. But then when I try to add it to the field extractors, it's including too much information. I need to extract the LINK_TARGET value from the event below but the USER details are also being included in the field extractor setup.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hopefully my redactions don't make this impossible for gurus to assist.&lt;/P&gt;&lt;P&gt;Search command:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="index" search_term | rex field=_raw "LINK_TARGET\s:\s(?&amp;lt;link_target&amp;gt;.*)\n"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;2021-11-10 16:03:14.631 INFO  [blah] [Country=US] [User=user] [ip] [DefaultLynxMetricsLogger] [blah] [blah]  Metrics logging start: key blah_SEARCH_ORIGIN 
LINK_TARGET : https://www.blah.com/en_US/blah?utm_source=copy&amp;amp;utm_medium=blah&amp;amp;utm_campaign=blah
USER : 9999999
Metrics logging end&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Nov 2021 19:02:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-Extraction/m-p/574445#M200184</guid>
      <dc:creator>jeck11</dc:creator>
      <dc:date>2021-11-10T19:02:22Z</dc:date>
    </item>
    <item>
      <title>Re: Field Extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-Extraction/m-p/574448#M200187</link>
      <description>&lt;P&gt;Hi!&lt;BR /&gt;&lt;BR /&gt;You can use this command:&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;index="index" search_term | rex field=_raw "LINK_TARGET\s:\s(?&amp;lt;link_target&amp;gt;[^\n]*)\n"&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Nov 2021 16:49:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-Extraction/m-p/574448#M200187</guid>
      <dc:creator>rafadvega</dc:creator>
      <dc:date>2021-11-10T16:49:44Z</dc:date>
    </item>
    <item>
      <title>Re: Field Extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-Extraction/m-p/574449#M200188</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex field=_raw "LINK_TARGET\s:\s(?&amp;lt;link_target&amp;gt;\S*)"&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 10 Nov 2021 16:56:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-Extraction/m-p/574449#M200188</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-11-10T16:56:10Z</dc:date>
    </item>
    <item>
      <title>Re: Field Extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-Extraction/m-p/574463#M200193</link>
      <description>&lt;P&gt;The rex command is already working in the search time extraction. I'm trying to define it as a field extraction and that is where it's pulling back too much. Thanks though.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Nov 2021 17:54:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-Extraction/m-p/574463#M200193</guid>
      <dc:creator>jeck11</dc:creator>
      <dc:date>2021-11-10T17:54:37Z</dc:date>
    </item>
    <item>
      <title>Re: Field Extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-Extraction/m-p/574466#M200195</link>
      <description>&lt;P&gt;The search syntax that I included is working fine. I'm trying to define it as a field extraction and that's where it's pulling in too much. Thanks though.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Nov 2021 17:55:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-Extraction/m-p/574466#M200195</guid>
      <dc:creator>jeck11</dc:creator>
      <dc:date>2021-11-10T17:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: Field Extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-Extraction/m-p/574473#M200198</link>
      <description>&lt;P&gt;What extraction do you currently have?&lt;/P&gt;</description>
      <pubDate>Wed, 10 Nov 2021 18:48:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-Extraction/m-p/574473#M200198</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-11-10T18:48:48Z</dc:date>
    </item>
    <item>
      <title>Re: Field Extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-Extraction/m-p/574476#M200199</link>
      <description>&lt;P&gt;I just updated the original post with screenshot. Do they help clarify the issue?&lt;/P&gt;</description>
      <pubDate>Wed, 10 Nov 2021 18:52:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-Extraction/m-p/574476#M200199</guid>
      <dc:creator>jeck11</dc:creator>
      <dc:date>2021-11-10T18:52:43Z</dc:date>
    </item>
    <item>
      <title>Re: Field Extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-Extraction/m-p/574478#M200201</link>
      <description>&lt;P&gt;So have you tried the different suggestions for the regex string?&lt;/P&gt;</description>
      <pubDate>Wed, 10 Nov 2021 18:57:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-Extraction/m-p/574478#M200201</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-11-10T18:57:29Z</dc:date>
    </item>
    <item>
      <title>Re: Field Extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-Extraction/m-p/574479#M200202</link>
      <description>&lt;P&gt;I'm a moron. I just copied yours over and it worked. Thanks for sticking with me. I'll mark it as the answer.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Nov 2021 19:01:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-Extraction/m-p/574479#M200202</guid>
      <dc:creator>jeck11</dc:creator>
      <dc:date>2021-11-10T19:01:34Z</dc:date>
    </item>
  </channel>
</rss>

