<?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: unstructured logs how to extract the given item example in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/unstructured-logs-how-to-extract-the-given-item-example/m-p/457814#M8324</link>
    <description>&lt;P&gt;Hi @mindia,&lt;BR /&gt;
you can try this on raw data :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...|rex "Statements : (?&amp;lt;Statements&amp;gt;[^\s+]+).*Lines : (?&amp;lt;Lines&amp;gt;[^\s+]+)"|table _time, Statements , Lines
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 14 Sep 2018 14:08:14 GMT</pubDate>
    <dc:creator>493669</dc:creator>
    <dc:date>2018-09-14T14:08:14Z</dc:date>
    <item>
      <title>unstructured logs how to extract the given item example</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/unstructured-logs-how-to-extract-the-given-item-example/m-p/457813#M8323</link>
      <description>&lt;P&gt;The unsturctured log contains many lines and at the end below coverage report, it is not getting captured as a field, even Extract new field, when I tried, it is adding junk data in the fields covering other lines&lt;/P&gt;

&lt;P&gt;line1&lt;BR /&gt;
line2&lt;BR /&gt;
..&lt;BR /&gt;
...&lt;BR /&gt;
line n&lt;BR /&gt;
============ coverage  report ==========&lt;BR /&gt;
Statements : 34% (20/22)&lt;/P&gt;

&lt;H1&gt;Lines            : 56% (56/100)&lt;/H1&gt;

&lt;P&gt;Is it possible to create a search query  which would generate the table like&lt;/P&gt;

&lt;P&gt;_time  Statements   Lines&lt;BR /&gt;
14-9-2018    34%    56%&lt;/P&gt;

&lt;P&gt;Since the coverage report is unstructured not able to capture the details as a field.... any suggestions are welcome. &lt;/P&gt;

&lt;P&gt;Thanks!.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Sep 2018 12:26:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/unstructured-logs-how-to-extract-the-given-item-example/m-p/457813#M8323</guid>
      <dc:creator>mindia</dc:creator>
      <dc:date>2018-09-14T12:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: unstructured logs how to extract the given item example</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/unstructured-logs-how-to-extract-the-given-item-example/m-p/457814#M8324</link>
      <description>&lt;P&gt;Hi @mindia,&lt;BR /&gt;
you can try this on raw data :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...|rex "Statements : (?&amp;lt;Statements&amp;gt;[^\s+]+).*Lines : (?&amp;lt;Lines&amp;gt;[^\s+]+)"|table _time, Statements , Lines
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 14 Sep 2018 14:08:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/unstructured-logs-how-to-extract-the-given-item-example/m-p/457814#M8324</guid>
      <dc:creator>493669</dc:creator>
      <dc:date>2018-09-14T14:08:14Z</dc:date>
    </item>
  </channel>
</rss>

