<?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: Customise query in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/How-do-I-customize-search-for-table-output/m-p/633356#M15593</link>
    <description>&lt;P&gt;If stats by application_name is giving you login, pageout etc. I am not sure why chart by application_name is giving NULL.&lt;/P&gt;&lt;P&gt;Please can you share some sample events (anonymised of course) and the exact search that you used to get these results?&lt;/P&gt;</description>
    <pubDate>Sun, 05 Mar 2023 23:14:14 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2023-03-05T23:14:14Z</dc:date>
    <item>
      <title>How do I customize search for table output?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-do-I-customize-search-for-table-output/m-p/633236#M15581</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Search:&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index=xxxx sourcetype=xxxxx  home_feature!=connectapp  application_name IN(artical, login,  management, pageout) 
|table Description application _time  count
|sort Description _time  home_feature application_name
streamstats current=f window=1 values( Description) as desp   values(home_feature) as app values(_time) as totaltime  values (count) as totalcount
|eval siml=if(home_feature == app AND Description == desp, count - totalcount,0)
|eval siml2=if(siml &amp;lt;0, Count, siml)
|where siml2 &amp;gt; 0
|eval time=strftime(now(), %d/%m/%YT%H:%M:%S)
|stats sum(value) by home_feature, application_name&lt;/LI-CODE&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;Output:&lt;/P&gt;
&lt;TABLE border="1" width="56.249998519628896%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="25%" height="14px"&gt;&lt;SPAN&gt;home_feature&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD width="25%" height="14px"&gt;&lt;SPAN&gt;application_name&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD width="25%" height="14px"&gt;sum(value)&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="25%" height="46px"&gt;ampt.gc.com&lt;/TD&gt;
&lt;TD width="25%" height="46px"&gt;&lt;SPAN&gt;login&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD width="25%" height="46px"&gt;298&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="25%" height="46px"&gt;ampt.gc.com&lt;/TD&gt;
&lt;TD width="25%" height="46px"&gt;pageout&lt;/TD&gt;
&lt;TD width="25%" height="46px"&gt;2341&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="25%" height="46px"&gt;https:gtt.com&lt;/TD&gt;
&lt;TD width="25%" height="46px"&gt;&lt;SPAN&gt;artical&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD width="25%" height="46px"&gt;4567&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;A href="http://www.gft.com" target="_blank" rel="noopener"&gt;wcw.gft.com&lt;/A&gt;&lt;/TD&gt;
&lt;TD&gt;&lt;SPAN&gt;management&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD&gt;678&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;app.df.com&lt;/TD&gt;
&lt;TD&gt;login&lt;/TD&gt;
&lt;TD&gt;499&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;rt.hj.com&lt;/TD&gt;
&lt;TD&gt;pageout&lt;/TD&gt;
&lt;TD&gt;567&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;tt.com&lt;/TD&gt;
&lt;TD&gt;artical&lt;/TD&gt;
&lt;TD&gt;345&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;ggt.com&lt;/TD&gt;
&lt;TD&gt;management&lt;/TD&gt;
&lt;TD&gt;178&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;but i need the output as shown below:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;TABLE border="1" width="626px"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="182.697px" height="24px"&gt;&lt;SPAN&gt;_time&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD width="112.836px" height="24px"&gt;&lt;SPAN&gt;home_feature&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD width="105.59px" height="24px"&gt;&lt;SPAN&gt;login&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD width="69.9884px" height="24px"&gt;&lt;SPAN&gt;pageout&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD width="105.59px" height="24px"&gt;management&lt;/TD&gt;
&lt;TD width="56.2732px" height="24px"&gt;artical&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="182.697px" height="44px"&gt;03/02/2023T14:05:15&lt;/TD&gt;
&lt;TD width="112.836px" height="44px"&gt;ampt.gc.com&lt;/TD&gt;
&lt;TD width="105.59px" height="44px"&gt;&lt;SPAN&gt;298&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD width="69.9884px" height="44px"&gt;&lt;SPAN&gt;100&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD width="105.59px" height="44px"&gt;678&lt;/TD&gt;
&lt;TD width="56.2732px" height="44px"&gt;567&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="182.697px" height="44px"&gt;03/02/2023T12:05:15&amp;nbsp;&lt;/TD&gt;
&lt;TD width="112.836px" height="44px"&gt;ampt.gc.com&lt;/TD&gt;
&lt;TD width="105.59px" height="44px"&gt;345&lt;/TD&gt;
&lt;TD width="69.9884px" height="44px"&gt;345&lt;/TD&gt;
&lt;TD width="105.59px" height="44px"&gt;12341&lt;/TD&gt;
&lt;TD width="56.2732px" height="44px"&gt;789&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="182.697px" height="44px"&gt;03/02/2023T11:05:15&amp;nbsp;&lt;/TD&gt;
&lt;TD width="112.836px" height="44px"&gt;https:gtt.com&lt;/TD&gt;
&lt;TD width="105.59px" height="44px"&gt;&lt;SPAN&gt;100&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD width="69.9884px" height="44px"&gt;&lt;SPAN&gt;45678&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD width="105.59px" height="44px"&gt;9087&lt;/TD&gt;
&lt;TD width="56.2732px" height="44px"&gt;4567&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="182.697px" height="24px"&gt;03/02/2023T10:05:15&amp;nbsp;&lt;/TD&gt;
&lt;TD width="112.836px" height="24px"&gt;&lt;A href="http://www.gft.com" target="_blank" rel="noopener"&gt;wcw.gft.com&lt;/A&gt;&lt;/TD&gt;
&lt;TD width="105.59px" height="24px"&gt;456&lt;/TD&gt;
&lt;TD width="69.9884px" height="24px"&gt;&lt;SPAN&gt;567&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD width="105.59px" height="24px"&gt;678&lt;/TD&gt;
&lt;TD width="56.2732px" height="24px"&gt;789&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="182.697px" height="24px"&gt;03/02/2023T09:05:15&amp;nbsp;&lt;/TD&gt;
&lt;TD width="112.836px" height="24px"&gt;app.df.com&lt;/TD&gt;
&lt;TD width="105.59px" height="24px"&gt;900&lt;/TD&gt;
&lt;TD width="69.9884px" height="24px"&gt;345&lt;/TD&gt;
&lt;TD width="105.59px" height="24px"&gt;23499&lt;/TD&gt;
&lt;TD width="56.2732px" height="24px"&gt;3215&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="182.697px" height="24px"&gt;03/02/2023T08:05:15&amp;nbsp;&lt;/TD&gt;
&lt;TD width="112.836px" height="24px"&gt;rt.hj.com&lt;/TD&gt;
&lt;TD width="105.59px" height="24px"&gt;789&lt;/TD&gt;
&lt;TD width="69.9884px" height="24px"&gt;125&lt;/TD&gt;
&lt;TD width="105.59px" height="24px"&gt;567&lt;/TD&gt;
&lt;TD width="56.2732px" height="24px"&gt;678&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="182.697px" height="24px"&gt;03/02/2023T06:05:15&amp;nbsp;&lt;/TD&gt;
&lt;TD width="112.836px" height="24px"&gt;tt.com&lt;/TD&gt;
&lt;TD width="105.59px" height="24px"&gt;12&lt;/TD&gt;
&lt;TD width="69.9884px" height="24px"&gt;34&lt;/TD&gt;
&lt;TD width="105.59px" height="24px"&gt;345&lt;/TD&gt;
&lt;TD width="56.2732px" height="24px"&gt;45&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="182.697px" height="15px"&gt;03/02/2023T04:05:15&amp;nbsp;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="112.836px" height="15px"&gt;ggt.com&lt;/TD&gt;
&lt;TD width="105.59px" height="15px"&gt;23&lt;/TD&gt;
&lt;TD width="69.9884px" height="15px"&gt;14&lt;/TD&gt;
&lt;TD width="105.59px" height="15px"&gt;178&lt;/TD&gt;
&lt;TD width="56.2732px" height="15px"&gt;34&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;how to achieve this?&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2023 14:36:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-do-I-customize-search-for-table-output/m-p/633236#M15581</guid>
      <dc:creator>mahesh27</dc:creator>
      <dc:date>2023-03-06T14:36:56Z</dc:date>
    </item>
    <item>
      <title>Re: Customise query</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-do-I-customize-search-for-table-output/m-p/633237#M15582</link>
      <description>&lt;LI-CODE lang="markup"&gt;index=xxxx sourcetype=xxxxx  home_feature!=connectapp  application_name IN(artical, login,  management, pageout) 
|table Description application _time  count
|sort Description _time  home_feature application_name
streamstats current=f window=1 values( Description) as desp   values(home_feature) as app values(_time) as totaltime  values (count) as totalcount
|eval siml=if(home_feature == app AND Description == desp, count - totalcount,0)
|eval siml2=if(siml &amp;lt;0, Count, siml)
|where siml2 &amp;gt; 0

|chart sum(value) by home_feature, application_name

|eval time=strftime(now(), %d/%m/%YT%H:%M:%S)&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 03 Mar 2023 20:06:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-do-I-customize-search-for-table-output/m-p/633237#M15582</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-03-03T20:06:51Z</dc:date>
    </item>
    <item>
      <title>Re: Customise query</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-do-I-customize-search-for-table-output/m-p/633344#M15590</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;|chart sum(value) by home_feature, application_name&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried the above query but i am getting the output as:&lt;/P&gt;&lt;TABLE border="1" width="36.37521650152315%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="50%"&gt;home_feature&lt;/TD&gt;&lt;TD width="7.632600258732213%"&gt;NULL&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="44px"&gt;ampt.gc.com&lt;/TD&gt;&lt;TD width="7.632600258732213%" height="44px"&gt;678&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="44px"&gt;&lt;SPAN&gt;https:gtt.com&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD width="7.632600258732213%" height="44px"&gt;345&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="44px"&gt;&lt;SPAN&gt;ggt.com&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD width="7.632600258732213%" height="44px"&gt;&lt;SPAN&gt;45678&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="24px"&gt;gct.com&amp;nbsp;&lt;/TD&gt;&lt;TD width="7.632600258732213%" height="24px"&gt;&lt;SPAN&gt;567&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="24px"&gt;gtt.com&lt;/TD&gt;&lt;TD width="7.632600258732213%"&gt;199&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And also i tried the query&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;|chart sum(value) over home_feature by application_name&lt;/LI-CODE&gt;&lt;P&gt;This is also giving same results as shown above.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 05 Mar 2023 20:40:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-do-I-customize-search-for-table-output/m-p/633344#M15590</guid>
      <dc:creator>mahesh27</dc:creator>
      <dc:date>2023-03-05T20:40:13Z</dc:date>
    </item>
    <item>
      <title>Re: Customise query</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-do-I-customize-search-for-table-output/m-p/633356#M15593</link>
      <description>&lt;P&gt;If stats by application_name is giving you login, pageout etc. I am not sure why chart by application_name is giving NULL.&lt;/P&gt;&lt;P&gt;Please can you share some sample events (anonymised of course) and the exact search that you used to get these results?&lt;/P&gt;</description>
      <pubDate>Sun, 05 Mar 2023 23:14:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-do-I-customize-search-for-table-output/m-p/633356#M15593</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-03-05T23:14:14Z</dc:date>
    </item>
    <item>
      <title>Re: Customise query</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-do-I-customize-search-for-table-output/m-p/633499#M15607</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;, Now i am getting the expected results, the mistake&amp;nbsp; i did is in chart i was mentioning&amp;nbsp; as chart sum(value), but i should mention as chart sum(diff).&lt;BR /&gt;Thank you for your response, it helped me.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2023 22:34:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-do-I-customize-search-for-table-output/m-p/633499#M15607</guid>
      <dc:creator>mahesh27</dc:creator>
      <dc:date>2023-03-06T22:34:56Z</dc:date>
    </item>
  </channel>
</rss>

