<?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: Tabular format in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Tabular-format/m-p/386488#M112811</link>
    <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval raw="2019-Jul-11 13:21:51#ServiceName#ResponseTime#Status:::2019-Jul-11 13:21:51#Service1#100#Pass:::2019-Jul-11 13:21:57#Service2#200#Pass:::2019-Jul-11 13:22:09#Service3#300#Fail" 
| makemv delim=":::" raw 
| mvexpand raw 
| rename raw AS _raw 

| rename COMMENT AS "Everything above generates sample events; everything below is your solution"

| rex "^(?&amp;lt;_time&amp;gt;[^#]+)#(?&amp;lt;ServiceName&amp;gt;[^#]+)#(?&amp;lt;ResponseTime&amp;gt;[^#]+)#(?&amp;lt;Status&amp;gt;[^#]+)$"
| where isnum(ResponseTime)
| eval _time = strptime(_time, "%Y-%b-%d %H:%M:%S")
| table _time ServiceName ResponseTime Status
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 16 Jul 2019 02:47:30 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2019-07-16T02:47:30Z</dc:date>
    <item>
      <title>Tabular format</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Tabular-format/m-p/386483#M112806</link>
      <description>&lt;P&gt;I want to display below logs in tabular format. Is there any possibility to display the below data in tabular format?&lt;/P&gt;

&lt;P&gt;Start&lt;BR /&gt;
2019-Jul-11 13:21:51#ServiceName#ResponseTime#Status&lt;BR /&gt;
2019-Jul-11 13:21:51#Service1#100#Pass&lt;BR /&gt;
2019-Jul-11 13:21:57#Service2#200#Pass&lt;BR /&gt;
2019-Jul-11 13:22:09#Service3#300#Fail&lt;BR /&gt;
End&lt;/P&gt;

&lt;P&gt;Expected Tabular format&lt;/P&gt;

&lt;P&gt;Time|ServiceName|ResponseTime|Status&lt;BR /&gt;
2019-Jul-11 13:21:51|Service1|100|Pass&lt;BR /&gt;
2019-Jul-11 13:21:57|Service2|200|Pass&lt;BR /&gt;
2019-Jul-11 13:22:09|Service3|300|Fail&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2019 01:26:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Tabular-format/m-p/386483#M112806</guid>
      <dc:creator>jeganandrews</dc:creator>
      <dc:date>2019-07-12T01:26:08Z</dc:date>
    </item>
    <item>
      <title>Re: Tabular format</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Tabular-format/m-p/386484#M112807</link>
      <description>&lt;P&gt;Input:&lt;/P&gt;

&lt;P&gt;Time=2019-Jul-11 13:21:51#Service=A#ReponseTime=100#Status=Pass&lt;BR /&gt;
Time=2019-Jul-11 13:21:57#Service=B#ReponseTime=200#Status=Pass&lt;BR /&gt;
Time=2019-Jul-11 13:22:09#Service=C#ReponseTime=300#Status=Fail&lt;/P&gt;

&lt;P&gt;Expected output&lt;/P&gt;

&lt;P&gt;Time|Service|ResponseTime|Status&lt;BR /&gt;
2019-Jul-11 13:21:51|A|100|Pass&lt;BR /&gt;
2019-Jul-11 13:21:57|B|200|Pass&lt;BR /&gt;
2019-Jul-11 13:22:09|C|300|Fail&lt;/P&gt;

&lt;P&gt;Can any one help me to find search query?&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2019 17:40:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Tabular-format/m-p/386484#M112807</guid>
      <dc:creator>jeganandrews</dc:creator>
      <dc:date>2019-07-12T17:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: Tabular format</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Tabular-format/m-p/386485#M112808</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=foo sourcetype=bar
| rex field=_raw "^(?&amp;lt;time&amp;gt;[\d\w\s:\-]+)#(?&amp;lt;serviceName&amp;gt;\w+)#(?&amp;lt;responseTime&amp;gt;\w+)#(?&amp;lt;status&amp;gt;\w+)"
| table time, serviceName, responseTime, status
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 12 Jul 2019 18:44:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Tabular-format/m-p/386485#M112808</guid>
      <dc:creator>oscar84x</dc:creator>
      <dc:date>2019-07-12T18:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: Tabular format</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Tabular-format/m-p/386486#M112809</link>
      <description>&lt;P&gt;Thank you oscar84x&lt;/P&gt;

&lt;P&gt;I am getting output in sorted with unique value which is not expected.&lt;BR /&gt;
For Eg:&lt;/P&gt;

&lt;P&gt;Input&lt;/P&gt;

&lt;P&gt;Time=2019-Jul-11 13:21:51#Service=B#ReponseTime=200#Status=Pass&lt;BR /&gt;
Time=2019-Jul-11 13:21:57#Service=C#ReponseTime=300#Status=Pass&lt;BR /&gt;
Time=2019-Jul-11 13:22:09#Service=A#ReponseTime=100#Status=Pass&lt;/P&gt;

&lt;P&gt;Expected output&lt;/P&gt;

&lt;P&gt;Time|Service|ResponseTime|Status&lt;BR /&gt;
2019-Jul-11 13:21:51|B|200|Pass&lt;BR /&gt;
2019-Jul-11 13:21:57|C|300|Pass&lt;BR /&gt;
2019-Jul-11 13:22:09|A|100|Pass&lt;/P&gt;

&lt;P&gt;Actual Output&lt;/P&gt;

&lt;P&gt;Time|Service|ResponseTime|Status&lt;BR /&gt;
2019-Jul-11 13:21:51|A|100|Pass&lt;BR /&gt;
2019-Jul-11 13:21:57|B|200|&lt;BR /&gt;
2019-Jul-11 13:22:09|C|300|&lt;/P&gt;</description>
      <pubDate>Sat, 13 Jul 2019 02:19:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Tabular-format/m-p/386486#M112809</guid>
      <dc:creator>jeganandrews</dc:creator>
      <dc:date>2019-07-13T02:19:03Z</dc:date>
    </item>
    <item>
      <title>Re: Tabular format</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Tabular-format/m-p/386487#M112810</link>
      <description>&lt;P&gt;I'm not sure I understand your wording, but based on your example are you saying that the time isn't matching the event? And the status field isn't populating properly either?&lt;BR /&gt;
Are these real data examples?&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2019 19:15:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Tabular-format/m-p/386487#M112810</guid>
      <dc:creator>oscar84x</dc:creator>
      <dc:date>2019-07-15T19:15:48Z</dc:date>
    </item>
    <item>
      <title>Re: Tabular format</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Tabular-format/m-p/386488#M112811</link>
      <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval raw="2019-Jul-11 13:21:51#ServiceName#ResponseTime#Status:::2019-Jul-11 13:21:51#Service1#100#Pass:::2019-Jul-11 13:21:57#Service2#200#Pass:::2019-Jul-11 13:22:09#Service3#300#Fail" 
| makemv delim=":::" raw 
| mvexpand raw 
| rename raw AS _raw 

| rename COMMENT AS "Everything above generates sample events; everything below is your solution"

| rex "^(?&amp;lt;_time&amp;gt;[^#]+)#(?&amp;lt;ServiceName&amp;gt;[^#]+)#(?&amp;lt;ResponseTime&amp;gt;[^#]+)#(?&amp;lt;Status&amp;gt;[^#]+)$"
| where isnum(ResponseTime)
| eval _time = strptime(_time, "%Y-%b-%d %H:%M:%S")
| table _time ServiceName ResponseTime Status
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 16 Jul 2019 02:47:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Tabular-format/m-p/386488#M112811</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-07-16T02:47:30Z</dc:date>
    </item>
    <item>
      <title>Re: Tabular format</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Tabular-format/m-p/386489#M112812</link>
      <description>&lt;P&gt;I have framed this sample data from real data. Instead of actual service name (in read data), i have given Alphabets (sample data here). &lt;/P&gt;

&lt;P&gt;All the fields are sorted individually. I mean, Time is sorted, Services is sorted, Status is sorted, Response time also sorted.&lt;/P&gt;

&lt;P&gt;But i want to display the data in tabular format as it is.&lt;/P&gt;

&lt;P&gt;Input:&lt;BR /&gt;
STARTS **&lt;BR /&gt;
Time=2019-Jul-11 13:21:51#Service=B#ReponseTime=300#Status=Pass&lt;BR /&gt;
Time=2019-Jul-11 13:21:57#Service=C#ReponseTime=200#Status=Pass&lt;BR /&gt;
Time=2019-Jul-11 13:22:09#Service=A#ReponseTime=100#Status=Pass&lt;BR /&gt;
ENDS **#2019-Jul-11 13:22:09#Pass&lt;/P&gt;

&lt;P&gt;index="aaa" host="ccc"| transaction  startswith="STARTS" endswith="ENDS"| search TimeStamp="2019-Jul-11 13:22:09" &lt;BR /&gt;
| rex field=_raw "^(?[\d\w\s:-]+)#(?\w+)#(?\w+)#(?\w+)"&lt;BR /&gt;
| table Time, Service, ResponseTime, Status&lt;/P&gt;

&lt;P&gt;Expected output&lt;/P&gt;

&lt;P&gt;Time|Service|ResponseTime|Status&lt;BR /&gt;
2019-Jul-11 13:21:51|B|300|Pass&lt;BR /&gt;
2019-Jul-11 13:21:57|C|200|Pass&lt;BR /&gt;
2019-Jul-11 13:22:09|A|100|Pass&lt;/P&gt;

&lt;P&gt;Actual Output&lt;/P&gt;

&lt;P&gt;Time|Service|ResponseTime|Status&lt;BR /&gt;
2019-Jul-11 13:21:51|A|100|Pass&lt;BR /&gt;
2019-Jul-11 13:21:57|B|200|&lt;BR /&gt;
2019-Jul-11 13:22:09|C|300|&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2019 07:41:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Tabular-format/m-p/386489#M112812</guid>
      <dc:creator>jeganandrews</dc:creator>
      <dc:date>2019-07-17T07:41:31Z</dc:date>
    </item>
  </channel>
</rss>

