<?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: Displaying data in table in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Displaying-data-in-table/m-p/305456#M91712</link>
    <description>&lt;P&gt;Depending on how your data is broken out you'll probably need some regex to break out your individual fields but once that is done you can accomplish the table with something like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval StartTime = case(field_name="Backup Process Started", time_field_name)
| eval FinishTime = case(field_name="Backup Process Finished", time_field_name)
| eval BackupSize = case(field_name="backup_size", size_field_name)
| transaction Date_Field maxspan=24h
| table StartTime FinishTime BackupSize
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I put all of your data into fields that correspond to the columns in your table then I used transaction to group them by date. &lt;/P&gt;</description>
    <pubDate>Wed, 28 Mar 2018 13:41:11 GMT</pubDate>
    <dc:creator>kmaron</dc:creator>
    <dc:date>2018-03-28T13:41:11Z</dc:date>
    <item>
      <title>Displaying data in table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Displaying-data-in-table/m-p/305455#M91711</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;How to display these logs in table format.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Raw data&lt;/STRONG&gt;&lt;BR /&gt;
Source 1:&lt;BR /&gt;
2018-03-25 00:30:00 Backup Process Started&lt;BR /&gt;
2018-03-25 11:44:03 Backup process Finished&lt;BR /&gt;
2018-03-25 11:50:00 backup_size=5.2T&lt;/P&gt;

&lt;P&gt;Source 2:&lt;BR /&gt;
2018-03-21 00:30:00 Backup Process Started&lt;BR /&gt;
2018-03-21 11:45:22 Backup process Finished&lt;BR /&gt;
2018-03-21 11:50:00 backup_size=5.5T&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Output:
    Start                  Finish                      size
    2018-03-21 00:30:00   2018-03-21 11:45:22          5.2T
    2018-03-25 00:30:00   2018-03-25 11:44:03          5.5T
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thankyou&lt;/P&gt;</description>
      <pubDate>Wed, 28 Mar 2018 10:56:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Displaying-data-in-table/m-p/305455#M91711</guid>
      <dc:creator>goyals05</dc:creator>
      <dc:date>2018-03-28T10:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying data in table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Displaying-data-in-table/m-p/305456#M91712</link>
      <description>&lt;P&gt;Depending on how your data is broken out you'll probably need some regex to break out your individual fields but once that is done you can accomplish the table with something like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval StartTime = case(field_name="Backup Process Started", time_field_name)
| eval FinishTime = case(field_name="Backup Process Finished", time_field_name)
| eval BackupSize = case(field_name="backup_size", size_field_name)
| transaction Date_Field maxspan=24h
| table StartTime FinishTime BackupSize
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I put all of your data into fields that correspond to the columns in your table then I used transaction to group them by date. &lt;/P&gt;</description>
      <pubDate>Wed, 28 Mar 2018 13:41:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Displaying-data-in-table/m-p/305456#M91712</guid>
      <dc:creator>kmaron</dc:creator>
      <dc:date>2018-03-28T13:41:11Z</dc:date>
    </item>
  </channel>
</rss>

