<?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: how to make table in splunk in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-make-table-in-Splunk/m-p/354389#M162283</link>
    <description>&lt;P&gt;Generate a table&lt;BR /&gt;
To generate a table, write a search that includes a transforming command. From the Search page, run the search and select the Statistics tab to view and format the table.&lt;/P&gt;

&lt;P&gt;You can use the table command in a search to specify the fields that the table includes or to change table column order.&lt;/P&gt;

&lt;P&gt;Search examples&lt;BR /&gt;
1) Transforming search&lt;BR /&gt;
This search uses the chart transforming command.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index = _internal | chart avg(bytes) over sourcetype
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;2) Transforming search with the table command&lt;BR /&gt;
This search generates a table with action, host, and count columns.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index = _internal | stats count by action, host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;To change the columns that appear in the table or to change column order, add the table command to this search. For example, add | table host count to generate a table with only the host and count columns.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index = _internal | stats count by action, host | table host count
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;3) Using eval&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
  | eval field_a ="My Value A", field_b ="Other Value B" 
  | table [|makeresults |  eval search ="field_a field_b" | table search ]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Also, have a look at this table command reference doc there are many examples in this&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.0.2/SearchReference/Table"&gt;https://docs.splunk.com/Documentation/Splunk/7.0.2/SearchReference/Table&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;let me know if this helps!&lt;/P&gt;</description>
    <pubDate>Thu, 15 Mar 2018 10:44:19 GMT</pubDate>
    <dc:creator>mayurr98</dc:creator>
    <dc:date>2018-03-15T10:44:19Z</dc:date>
    <item>
      <title>How to make table in Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-make-table-in-Splunk/m-p/354388#M162282</link>
      <description>&lt;P&gt;Please provide different examples so that its very easy for us to understand.&lt;BR /&gt;explaining the example with eval command will be awarded.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2022 14:35:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-make-table-in-Splunk/m-p/354388#M162282</guid>
      <dc:creator>logloganathan</dc:creator>
      <dc:date>2022-04-18T14:35:49Z</dc:date>
    </item>
    <item>
      <title>Re: how to make table in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-make-table-in-Splunk/m-p/354389#M162283</link>
      <description>&lt;P&gt;Generate a table&lt;BR /&gt;
To generate a table, write a search that includes a transforming command. From the Search page, run the search and select the Statistics tab to view and format the table.&lt;/P&gt;

&lt;P&gt;You can use the table command in a search to specify the fields that the table includes or to change table column order.&lt;/P&gt;

&lt;P&gt;Search examples&lt;BR /&gt;
1) Transforming search&lt;BR /&gt;
This search uses the chart transforming command.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index = _internal | chart avg(bytes) over sourcetype
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;2) Transforming search with the table command&lt;BR /&gt;
This search generates a table with action, host, and count columns.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index = _internal | stats count by action, host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;To change the columns that appear in the table or to change column order, add the table command to this search. For example, add | table host count to generate a table with only the host and count columns.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index = _internal | stats count by action, host | table host count
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;3) Using eval&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
  | eval field_a ="My Value A", field_b ="Other Value B" 
  | table [|makeresults |  eval search ="field_a field_b" | table search ]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Also, have a look at this table command reference doc there are many examples in this&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.0.2/SearchReference/Table"&gt;https://docs.splunk.com/Documentation/Splunk/7.0.2/SearchReference/Table&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;let me know if this helps!&lt;/P&gt;</description>
      <pubDate>Thu, 15 Mar 2018 10:44:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-make-table-in-Splunk/m-p/354389#M162283</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2018-03-15T10:44:19Z</dc:date>
    </item>
    <item>
      <title>Re: how to make table in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-make-table-in-Splunk/m-p/354390#M162284</link>
      <description>&lt;P&gt;thanks for your answer&lt;/P&gt;</description>
      <pubDate>Thu, 15 Mar 2018 11:21:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-make-table-in-Splunk/m-p/354390#M162284</guid>
      <dc:creator>logloganathan</dc:creator>
      <dc:date>2018-03-15T11:21:11Z</dc:date>
    </item>
    <item>
      <title>Re: how to make table in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-make-table-in-Splunk/m-p/594050#M206771</link>
      <description>&lt;P&gt;Hello All,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please help to make following type of tables using | makeresults command: -&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="50%"&gt;&lt;STRONG&gt;Column1&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="50%"&gt;&lt;STRONG&gt;Column2&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%"&gt;C1&lt;/TD&gt;&lt;TD width="50%"&gt;A,B,C&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%"&gt;C2&lt;/TD&gt;&lt;TD width="50%"&gt;D,E,F,G&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%"&gt;C3&lt;/TD&gt;&lt;TD width="50%"&gt;X&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="50%"&gt;&lt;STRONG&gt;Column1&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="50%"&gt;&lt;STRONG&gt;Column2&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%"&gt;C1&lt;/TD&gt;&lt;TD width="50%"&gt;A&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%"&gt;C1&lt;/TD&gt;&lt;TD width="50%"&gt;B&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%"&gt;C1&lt;/TD&gt;&lt;TD width="50%"&gt;C&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%"&gt;C2&lt;/TD&gt;&lt;TD width="50%"&gt;D&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%"&gt;C2&lt;/TD&gt;&lt;TD width="50%"&gt;E&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%"&gt;C2&lt;/TD&gt;&lt;TD width="50%"&gt;F&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%"&gt;C2&lt;/TD&gt;&lt;TD width="50%"&gt;G&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%"&gt;C3&lt;/TD&gt;&lt;TD width="50%"&gt;X&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2022 10:32:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-make-table-in-Splunk/m-p/594050#M206771</guid>
      <dc:creator>Taruchit</dc:creator>
      <dc:date>2022-04-18T10:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: how to make table in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-make-table-in-Splunk/m-p/594248#M206825</link>
      <description>&lt;P&gt;| makeresults | eval column1= "c1",column2="A,B,C"&lt;BR /&gt;|append[| makeresults | eval column1= "c2",column2="D,E,F,G"]&lt;BR /&gt;|append[| makeresults | eval column1= "c3",column2="X"]&lt;BR /&gt;| fields - _time&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;You can try like this.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2022 12:09:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-make-table-in-Splunk/m-p/594248#M206825</guid>
      <dc:creator>vinod743374</dc:creator>
      <dc:date>2022-04-19T12:09:44Z</dc:date>
    </item>
    <item>
      <title>Re: how to make table in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-make-table-in-Splunk/m-p/595615#M207294</link>
      <description>&lt;P&gt;Thank you, it worked successfully.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 15:57:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-make-table-in-Splunk/m-p/595615#M207294</guid>
      <dc:creator>Taruchit</dc:creator>
      <dc:date>2022-04-27T15:57:07Z</dc:date>
    </item>
  </channel>
</rss>

