<?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 Formatting in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Table-Formatting/m-p/157540#M44331</link>
    <description>&lt;P&gt;Try this workaround&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=port_scan (dst_port=443 OR dst_port=80 OR dst_port=4000 OR dst_port=43500 OR dst_port=43501) | dedup dest_ip| eval allfields=strftime(_time,"%Y-%m-%d %H:%M:%S").",".dest_ip.",".dest_host | eval dst_port =dst_port." State"| chart latest(dst_port_state) AS "state" over allfields  by dst_port | rex field=allfields "(?&amp;lt;Time&amp;gt;.*),(?&amp;lt;dest_ip&amp;gt;.*),(?&amp;lt;dest_host&amp;gt;.*)" | fields - allfields
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 19 Feb 2014 16:01:27 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2014-02-19T16:01:27Z</dc:date>
    <item>
      <title>Table Formatting</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Table-Formatting/m-p/157539#M44330</link>
      <description>&lt;P&gt;I am having some difficulty formatting a table the way I would like. &lt;BR /&gt;
I am monitoring port state for a couple different ports on a few different machines. &lt;/P&gt;

&lt;P&gt;Currently this is my search string:&lt;BR /&gt;
sourcetype=port_scan (dst_port=443 OR dst_port=80 OR dst_port=4000 OR dst_port=43500 OR dst_port=43501) | dedup dest_ip | stats latest(dst_port_state) AS "state" by _time,dest_ip,dst_port,dest_host&lt;/P&gt;

&lt;P&gt;This is what my output looks like:&lt;BR /&gt;
&lt;IMG src="http://answers.splunk.com//storage/port_scan.jpg" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;I was wondering if anyone knew a way for it to look like this:&lt;/P&gt;

&lt;P&gt;time, dest_ip, dest__host,"80 state", "4000 state"&lt;/P&gt;

&lt;P&gt;12:00pm, 10.10.10.10,hostname, UP, DOWN&lt;/P&gt;

&lt;P&gt;I'm thinking that I would need to make each port a field, and then report their status, but I don't know i'm missing an easier way? &lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 15:56:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Table-Formatting/m-p/157539#M44330</guid>
      <dc:creator>tmarlette</dc:creator>
      <dc:date>2020-09-28T15:56:00Z</dc:date>
    </item>
    <item>
      <title>Re: Table Formatting</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Table-Formatting/m-p/157540#M44331</link>
      <description>&lt;P&gt;Try this workaround&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=port_scan (dst_port=443 OR dst_port=80 OR dst_port=4000 OR dst_port=43500 OR dst_port=43501) | dedup dest_ip| eval allfields=strftime(_time,"%Y-%m-%d %H:%M:%S").",".dest_ip.",".dest_host | eval dst_port =dst_port." State"| chart latest(dst_port_state) AS "state" over allfields  by dst_port | rex field=allfields "(?&amp;lt;Time&amp;gt;.*),(?&amp;lt;dest_ip&amp;gt;.*),(?&amp;lt;dest_host&amp;gt;.*)" | fields - allfields
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 19 Feb 2014 16:01:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Table-Formatting/m-p/157540#M44331</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-02-19T16:01:27Z</dc:date>
    </item>
    <item>
      <title>Re: Table Formatting</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Table-Formatting/m-p/157541#M44332</link>
      <description>&lt;P&gt;This works really well for reporting, but what if I wanted to run a realtime search?&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2014 20:46:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Table-Formatting/m-p/157541#M44332</guid>
      <dc:creator>tmarlette</dc:creator>
      <dc:date>2014-02-25T20:46:59Z</dc:date>
    </item>
  </channel>
</rss>

