<?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: Table query in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Table-query/m-p/240449#M71471</link>
    <description>&lt;P&gt;The rex you'll want would be &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex "Got an error:\s+(?&amp;lt;field1&amp;gt;\d{2})(?&amp;lt;field2&amp;gt;\d{2})(?&amp;lt;field3&amp;gt;\d{2})"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Those are &lt;CODE&gt;\d&lt;/CODE&gt; for digit, &lt;CODE&gt;{2}&lt;/CODE&gt; exactly two of them.&lt;/P&gt;

&lt;P&gt;Like in this run-anywhere example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| gentimes start=3/1/2016 end=3/2/2016 | eval test="Got an error: 010203" | rex field=test "Got an error:\s+(?&amp;lt;field1&amp;gt;\d{2})(?&amp;lt;field2&amp;gt;\d{2})(?&amp;lt;field3&amp;gt;\d{2})"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 11 Mar 2016 20:25:16 GMT</pubDate>
    <dc:creator>Richfez</dc:creator>
    <dc:date>2016-03-11T20:25:16Z</dc:date>
    <item>
      <title>Table query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Table-query/m-p/240448#M71470</link>
      <description>&lt;P&gt;I cannot seem to find the right query for getting the following (table):&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;Time                            | field 1 | field 2 | field 3&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;2016-03-11 11:18:45    |   01   |   02    |   03&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;from:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;"Got an error: 010203"&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;This is what I have tried so far:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;rex "Got an error: (?&amp;lt;field1&amp;gt;(01))(?&amp;lt;field2&amp;gt;(02))(?&amp;lt;field3&amp;gt;(03)) | table _time field1 field2 field3&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2016 18:46:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Table-query/m-p/240448#M71470</guid>
      <dc:creator>ltalhouarne</dc:creator>
      <dc:date>2016-03-11T18:46:22Z</dc:date>
    </item>
    <item>
      <title>Re: Table query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Table-query/m-p/240449#M71471</link>
      <description>&lt;P&gt;The rex you'll want would be &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex "Got an error:\s+(?&amp;lt;field1&amp;gt;\d{2})(?&amp;lt;field2&amp;gt;\d{2})(?&amp;lt;field3&amp;gt;\d{2})"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Those are &lt;CODE&gt;\d&lt;/CODE&gt; for digit, &lt;CODE&gt;{2}&lt;/CODE&gt; exactly two of them.&lt;/P&gt;

&lt;P&gt;Like in this run-anywhere example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| gentimes start=3/1/2016 end=3/2/2016 | eval test="Got an error: 010203" | rex field=test "Got an error:\s+(?&amp;lt;field1&amp;gt;\d{2})(?&amp;lt;field2&amp;gt;\d{2})(?&amp;lt;field3&amp;gt;\d{2})"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 11 Mar 2016 20:25:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Table-query/m-p/240449#M71471</guid>
      <dc:creator>Richfez</dc:creator>
      <dc:date>2016-03-11T20:25:16Z</dc:date>
    </item>
  </channel>
</rss>

