<?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: Extract Text from logs in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Extract-Text-from-logs/m-p/316139#M94629</link>
    <description>&lt;P&gt;This did not help.&lt;BR /&gt;
It gives me the output from starting of the log to the first period and not from the colon to first period.&lt;/P&gt;

&lt;P&gt;Please help.&lt;/P&gt;</description>
    <pubDate>Tue, 24 Oct 2017 19:36:35 GMT</pubDate>
    <dc:creator>ppanchal</dc:creator>
    <dc:date>2017-10-24T19:36:35Z</dc:date>
    <item>
      <title>Extract Text from logs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-Text-from-logs/m-p/316133#M94623</link>
      <description>&lt;P&gt;Below is my log,&lt;/P&gt;

&lt;P&gt;CustomItemContainerGenerator.GenerateNextLocalContainer: Node is not the current one. in Xceed.Wpf.DataGrid.v4.5&lt;BR /&gt;
Stack trace:&lt;BR /&gt;
   at Xceed.Wpf.DataGrid.CustomItemContainerGenerator.GenerateNextLocalContainer(Boolean&amp;amp; isNewlyRealized)&lt;BR /&gt;
   at Xceed.Wpf.DataGrid.CustomItemContainerGenerator.System.Windows.Controls.Primitives.IItemContainerGenerator.GenerateNext(Boolean&amp;amp; isNewlyRealized)&lt;BR /&gt;
   at Xceed.Wpf.DataGrid.Views.TableflowViewItemsHost.GenerateContainer(ICustomItemContainerGenerator generator, Int32 index, Boolean measureInvalidated, Boolean delayDataContext)&lt;BR /&gt;
   at Xceed.Wpf.DataGrid.Views.TableflowViewItemsHost.GenerateContainers(I&lt;/P&gt;

&lt;P&gt;How can I extract only 'Node is not the current one' from the log and display?&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2017 19:34:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-Text-from-logs/m-p/316133#M94623</guid>
      <dc:creator>ppanchal</dc:creator>
      <dc:date>2017-10-17T19:34:37Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Text from logs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-Text-from-logs/m-p/316134#M94624</link>
      <description>&lt;P&gt;Is that all you want to extract, or is there something associated with that string that you want to extract? If all you want to do is display that one field, there seem to be many better ways of doing that. What are you going to do with that information from the events? If all you want to do is count the number of events that contain that, then you don't have to extract that data, just search for it and do a &lt;CODE&gt;stats count&lt;/CODE&gt; on the results. So I'm not sure what you need from such an extraction. Please help me understand.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2017 22:06:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-Text-from-logs/m-p/316134#M94624</guid>
      <dc:creator>cpetterborg</dc:creator>
      <dc:date>2017-10-17T22:06:20Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Text from logs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-Text-from-logs/m-p/316135#M94625</link>
      <description>&lt;P&gt;Time to learn some regex!&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2017 23:40:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-Text-from-logs/m-p/316135#M94625</guid>
      <dc:creator>sowings</dc:creator>
      <dc:date>2017-10-17T23:40:09Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Text from logs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-Text-from-logs/m-p/316136#M94626</link>
      <description>&lt;P&gt;So I have similar such errors in my logs and I want to extract them and display only the unique ones with only the error message and nothing else. stats count does not help me here.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2017 02:23:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-Text-from-logs/m-p/316136#M94626</guid>
      <dc:creator>ppanchal</dc:creator>
      <dc:date>2017-10-18T02:23:44Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Text from logs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-Text-from-logs/m-p/316137#M94627</link>
      <description>&lt;P&gt;Can you help me with the regex?&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2017 02:24:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-Text-from-logs/m-p/316137#M94627</guid>
      <dc:creator>ppanchal</dc:creator>
      <dc:date>2017-10-18T02:24:04Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Text from logs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-Text-from-logs/m-p/316138#M94628</link>
      <description>&lt;P&gt;Probably, but what is the point of extracting a constant text value. You don't need regex to do that. If you want to extract the message that comes after the colon to the first period, then use:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex "^\S+:\s*(?P&amp;lt;mess&amp;gt;[^.]+)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 18 Oct 2017 04:04:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-Text-from-logs/m-p/316138#M94628</guid>
      <dc:creator>cpetterborg</dc:creator>
      <dc:date>2017-10-18T04:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Text from logs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-Text-from-logs/m-p/316139#M94629</link>
      <description>&lt;P&gt;This did not help.&lt;BR /&gt;
It gives me the output from starting of the log to the first period and not from the colon to first period.&lt;/P&gt;

&lt;P&gt;Please help.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2017 19:36:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-Text-from-logs/m-p/316139#M94629</guid>
      <dc:creator>ppanchal</dc:creator>
      <dc:date>2017-10-24T19:36:35Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Text from logs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-Text-from-logs/m-p/316140#M94630</link>
      <description>&lt;P&gt;Hi there @ppanchal&lt;/P&gt;

&lt;P&gt;What about this one &lt;CODE&gt;... | rex ":\s(?&amp;lt;text&amp;gt;[\w\s]+)\.\s" | stats count by text&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2017 20:03:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-Text-from-logs/m-p/316140#M94630</guid>
      <dc:creator>alemarzu</dc:creator>
      <dc:date>2017-10-24T20:03:18Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Text from logs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-Text-from-logs/m-p/316141#M94631</link>
      <description>&lt;P&gt;Thanks that worked.&lt;/P&gt;

&lt;P&gt;One more question,&lt;/P&gt;

&lt;P&gt;How can I extract 'An entry with the same key already exists' from the below phrase,&lt;/P&gt;

&lt;P&gt;423160139776 An entry with the same key already exists. in System Stack trace &lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2017 20:43:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-Text-from-logs/m-p/316141#M94631</guid>
      <dc:creator>ppanchal</dc:creator>
      <dc:date>2017-10-24T20:43:04Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Text from logs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-Text-from-logs/m-p/316142#M94632</link>
      <description>&lt;P&gt;This one should work for both cases.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex "(?:\s|\d+\s)(?&amp;lt;text&amp;gt;[\w\s]+)\.\s" | stats count by text
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hope it helps. &lt;/P&gt;

&lt;P&gt;Remember to accept an answer to help future readers find the solution.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Oct 2017 13:26:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-Text-from-logs/m-p/316142#M94632</guid>
      <dc:creator>alemarzu</dc:creator>
      <dc:date>2017-10-25T13:26:33Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Text from logs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-Text-from-logs/m-p/316143#M94633</link>
      <description>&lt;P&gt;If you only want to extract that exact text, than: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; (?P&amp;lt;myfield&amp;gt;Node is not the current one\.)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 02 Nov 2017 18:55:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-Text-from-logs/m-p/316143#M94633</guid>
      <dc:creator>sshelly_splunk</dc:creator>
      <dc:date>2017-11-02T18:55:31Z</dc:date>
    </item>
  </channel>
</rss>

