<?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 Difficult extracting fields in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Difficult-extracting-fields/m-p/532544#M150436</link>
    <description>&lt;P&gt;I have events that look like this and I am using the field extractor&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"&lt;SPAN class="t"&gt;timestamp&lt;/SPAN&gt;"&lt;SPAN class="t"&gt;:&lt;/SPAN&gt; "&lt;SPAN class="t"&gt;2020-12-09T18:05:03.6664112Z&lt;/SPAN&gt;", &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"&lt;SPAN class="t h"&gt;scopeType&lt;/SPAN&gt;"&lt;SPAN class="t"&gt;:&lt;/SPAN&gt; "&lt;SPAN class="t"&gt;organization&lt;/SPAN&gt;", "&lt;SPAN class="t"&gt;scopeDisplayName&lt;/SPAN&gt;"&lt;SPAN class="t"&gt;:&lt;/SPAN&gt; "&lt;SPAN class="t"&gt;1D&lt;/SPAN&gt; (&lt;SPAN class="t"&gt;Organization&lt;/SPAN&gt;)", &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"&lt;SPAN class="t"&gt;scopeId&lt;/SPAN&gt;"&lt;SPAN class="t"&gt;:&lt;/SPAN&gt; "&lt;SPAN class="t"&gt;920941ec-025f-4d4c-9944-e7d357de7d94&lt;/SPAN&gt;", &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"&lt;SPAN class="t"&gt;actionId&lt;/SPAN&gt;"&lt;SPAN class="t"&gt;:&lt;/SPAN&gt; "&lt;SPAN class="t a"&gt;&lt;SPAN class="t"&gt;Deleted&lt;/SPAN&gt;&lt;/SPAN&gt;",&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"&lt;SPAN class="t"&gt;data&lt;/SPAN&gt;"&lt;SPAN class="t"&gt;:&lt;/SPAN&gt; {&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"&lt;SPAN class="t"&gt;ProjectName&lt;/SPAN&gt;"&lt;SPAN class="t"&gt;:&lt;/SPAN&gt; "&lt;SPAN class="t"&gt;ATI&lt;/SPAN&gt; &lt;SPAN class="t"&gt;Libs&lt;/SPAN&gt;",&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"&lt;SPAN class="t"&gt;RepoId&lt;/SPAN&gt;"&lt;SPAN class="t"&gt;:&lt;/SPAN&gt; "&lt;SPAN class="t"&gt;eb1e2a37-0833-462a-b3e6-031aa1d1f006&lt;/SPAN&gt;",&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"&lt;SPAN class="t"&gt;RepoName&lt;/SPAN&gt;"&lt;SPAN class="t"&gt;:&lt;/SPAN&gt; "&lt;SPAN class="t"&gt;libs-01&lt;/SPAN&gt;" &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;},&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I tried to extract fields using both delimited option ":" as well as using regex.&amp;nbsp; When I use delimiter of "," it creates the first field 'timestamp' correctly but then lumps everything after that into a single field.&amp;nbsp; &amp;nbsp;When I try to use regex to extract a field, for example I highlight the value "ATI Libs", I get this error:&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"The extraction failed. If you are extracting multiple fields, try removing one or more fields. Start with extractions that are embedded within longer text strings."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please advise, thanks.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 09 Dec 2020 22:20:08 GMT</pubDate>
    <dc:creator>jcioffari</dc:creator>
    <dc:date>2020-12-09T22:20:08Z</dc:date>
    <item>
      <title>Difficult extracting fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Difficult-extracting-fields/m-p/532544#M150436</link>
      <description>&lt;P&gt;I have events that look like this and I am using the field extractor&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"&lt;SPAN class="t"&gt;timestamp&lt;/SPAN&gt;"&lt;SPAN class="t"&gt;:&lt;/SPAN&gt; "&lt;SPAN class="t"&gt;2020-12-09T18:05:03.6664112Z&lt;/SPAN&gt;", &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"&lt;SPAN class="t h"&gt;scopeType&lt;/SPAN&gt;"&lt;SPAN class="t"&gt;:&lt;/SPAN&gt; "&lt;SPAN class="t"&gt;organization&lt;/SPAN&gt;", "&lt;SPAN class="t"&gt;scopeDisplayName&lt;/SPAN&gt;"&lt;SPAN class="t"&gt;:&lt;/SPAN&gt; "&lt;SPAN class="t"&gt;1D&lt;/SPAN&gt; (&lt;SPAN class="t"&gt;Organization&lt;/SPAN&gt;)", &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"&lt;SPAN class="t"&gt;scopeId&lt;/SPAN&gt;"&lt;SPAN class="t"&gt;:&lt;/SPAN&gt; "&lt;SPAN class="t"&gt;920941ec-025f-4d4c-9944-e7d357de7d94&lt;/SPAN&gt;", &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"&lt;SPAN class="t"&gt;actionId&lt;/SPAN&gt;"&lt;SPAN class="t"&gt;:&lt;/SPAN&gt; "&lt;SPAN class="t a"&gt;&lt;SPAN class="t"&gt;Deleted&lt;/SPAN&gt;&lt;/SPAN&gt;",&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"&lt;SPAN class="t"&gt;data&lt;/SPAN&gt;"&lt;SPAN class="t"&gt;:&lt;/SPAN&gt; {&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"&lt;SPAN class="t"&gt;ProjectName&lt;/SPAN&gt;"&lt;SPAN class="t"&gt;:&lt;/SPAN&gt; "&lt;SPAN class="t"&gt;ATI&lt;/SPAN&gt; &lt;SPAN class="t"&gt;Libs&lt;/SPAN&gt;",&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"&lt;SPAN class="t"&gt;RepoId&lt;/SPAN&gt;"&lt;SPAN class="t"&gt;:&lt;/SPAN&gt; "&lt;SPAN class="t"&gt;eb1e2a37-0833-462a-b3e6-031aa1d1f006&lt;/SPAN&gt;",&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"&lt;SPAN class="t"&gt;RepoName&lt;/SPAN&gt;"&lt;SPAN class="t"&gt;:&lt;/SPAN&gt; "&lt;SPAN class="t"&gt;libs-01&lt;/SPAN&gt;" &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;},&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I tried to extract fields using both delimited option ":" as well as using regex.&amp;nbsp; When I use delimiter of "," it creates the first field 'timestamp' correctly but then lumps everything after that into a single field.&amp;nbsp; &amp;nbsp;When I try to use regex to extract a field, for example I highlight the value "ATI Libs", I get this error:&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"The extraction failed. If you are extracting multiple fields, try removing one or more fields. Start with extractions that are embedded within longer text strings."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please advise, thanks.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2020 22:20:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Difficult-extracting-fields/m-p/532544#M150436</guid>
      <dc:creator>jcioffari</dc:creator>
      <dc:date>2020-12-09T22:20:08Z</dc:date>
    </item>
    <item>
      <title>Re: Difficult extracting fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Difficult-extracting-fields/m-p/532547#M150437</link>
      <description>&lt;P&gt;This looks a bit like JSON. Is this part of a larger event? Could you use spath to extract the fields? Also, are you using max_match=0 option in your rex command to extract multiple fields?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2020 22:32:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Difficult-extracting-fields/m-p/532547#M150437</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2020-12-09T22:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: Difficult extracting fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Difficult-extracting-fields/m-p/532557#M150442</link>
      <description>&lt;P&gt;You might need a field transform to handle this field extraction. Have a read at this Splunk documentation:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.1.0/Knowledge/Exampleconfigurationsusingfieldtransforms#Configure_delimiter-based_field_extractions" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.1.0/Knowledge/Exampleconfigurationsusingfieldtransforms#Configure_delimiter-based_field_extractions&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2020 23:23:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Difficult-extracting-fields/m-p/532557#M150442</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2020-12-09T23:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: Difficult extracting fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Difficult-extracting-fields/m-p/532588#M150451</link>
      <description>&lt;P&gt;I've tried spath but not seeing fields getting extracted properly.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2020 06:12:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Difficult-extracting-fields/m-p/532588#M150451</guid>
      <dc:creator>jcioffari</dc:creator>
      <dc:date>2020-12-10T06:12:43Z</dc:date>
    </item>
  </channel>
</rss>

