<?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: splunk feild extraction from a summary index in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-do-splunk-field-extraction-from-a-summary-index/m-p/656077#M226604</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/260126"&gt;@Mostafa3081&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;let me understand: you want to extract a part of a field in a summary index, is it correct?&lt;/P&gt;&lt;P&gt;If this is your requirement and if you can, the easiest way is to save the field to extract in the summary generating search.&lt;/P&gt;&lt;P&gt;Anyway, you can extract the part of the "text" field using a rex command:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex field=text "href\=\\\"(?&amp;lt;url&amp;gt;[^ ]*)"&lt;/LI-CODE&gt;&lt;P&gt;that you can test at&amp;nbsp;&lt;A href="https://regex101.com/r/6jptux/1" target="_blank"&gt;https://regex101.com/r/6jptux/1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 30 Aug 2023 09:59:31 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2023-08-30T09:59:31Z</dc:date>
    <item>
      <title>How to do splunk field extraction from a summary index?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-do-splunk-field-extraction-from-a-summary-index/m-p/656076#M226603</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I have an event log that looks like this&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;search_name=x, search_now=3.000, info_min_time=1692741600.000, info_max_time=1692828000.000, info_search_time=1692847620.636, app=Digital, &lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;text="&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;a&lt;/SPAN&gt; &lt;SPAN&gt;href&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;\&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;A href="https://support.vodafone.co.uk/1627646512" target="_blank" rel="noopener"&gt;https://support.vodafone.co.uk/1627646512&lt;/A&gt;&lt;/SPAN&gt; &lt;SPAN&gt;\&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt; &lt;SPAN&gt;target&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;\&lt;/SPAN&gt;&lt;SPAN&gt;"_blank\"&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt; ...etc ", info_log=l&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;use the command &lt;/SPAN&gt;... | table text&lt;SPAN&gt; to extract the 'text' field, you get the expected result&amp;nbsp;&lt;/SPAN&gt; &lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;a&lt;/SPAN&gt; &lt;SPAN&gt;href&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;\&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;A href="https://support.vodafone.co.uk/1627646512" target="_blank" rel="noopener"&gt;https://support.vodafone.co.uk/1627646512&lt;/A&gt;&lt;/SPAN&gt; &lt;SPAN&gt;\&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt; &lt;SPAN&gt;target&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;\&lt;/SPAN&gt;&lt;SPAN&gt;"_blank\"&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt; ...etc&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;However, when I attempt to extract the same 'text' field from the same event, but this time from a summary index, I&amp;nbsp; get a different result&lt;/SPAN&gt; &lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;a&lt;/SPAN&gt; &lt;SPAN&gt;href&lt;/SPAN&gt;&lt;SPAN&gt;=\&amp;nbsp;&lt;BR /&gt;and the whole value is presented in the event tap when i enable the verbose mode so the whole value is in the summary index but i can't show it.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;how to prevent splunk from truncating the result if it is in the summary index&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 30 Aug 2023 16:27:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-do-splunk-field-extraction-from-a-summary-index/m-p/656076#M226603</guid>
      <dc:creator>Mostafa3081</dc:creator>
      <dc:date>2023-08-30T16:27:51Z</dc:date>
    </item>
    <item>
      <title>Re: splunk feild extraction from a summary index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-do-splunk-field-extraction-from-a-summary-index/m-p/656077#M226604</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/260126"&gt;@Mostafa3081&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;let me understand: you want to extract a part of a field in a summary index, is it correct?&lt;/P&gt;&lt;P&gt;If this is your requirement and if you can, the easiest way is to save the field to extract in the summary generating search.&lt;/P&gt;&lt;P&gt;Anyway, you can extract the part of the "text" field using a rex command:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex field=text "href\=\\\"(?&amp;lt;url&amp;gt;[^ ]*)"&lt;/LI-CODE&gt;&lt;P&gt;that you can test at&amp;nbsp;&lt;A href="https://regex101.com/r/6jptux/1" target="_blank"&gt;https://regex101.com/r/6jptux/1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2023 09:59:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-do-splunk-field-extraction-from-a-summary-index/m-p/656077#M226604</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-08-30T09:59:31Z</dc:date>
    </item>
    <item>
      <title>Re: splunk feild extraction from a summary index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-do-splunk-field-extraction-from-a-summary-index/m-p/656416#M226721</link>
      <description>&lt;P&gt;thanks for your replay.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;No, I want the exact opposite. I want to extract the entire text value. I received a truncated version, and I can use regex to extract the complete value. However, why did the value get truncated when retrieved from a summary index but not from the normal index?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2023 11:33:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-do-splunk-field-extraction-from-a-summary-index/m-p/656416#M226721</guid>
      <dc:creator>Mostafa3081</dc:creator>
      <dc:date>2023-09-01T11:33:19Z</dc:date>
    </item>
  </channel>
</rss>

