<?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: Custom Search in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/Custom-Search/m-p/678033#M18703</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/251452"&gt;@vishwa&lt;/a&gt;&amp;nbsp;re:mvstats - did you know that Splunk natively supports min/max/avg/sum on mvfields.&lt;/P&gt;</description>
    <pubDate>Tue, 20 Feb 2024 01:39:45 GMT</pubDate>
    <dc:creator>bowesmana</dc:creator>
    <dc:date>2024-02-20T01:39:45Z</dc:date>
    <item>
      <title>Custom Search</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Custom-Search/m-p/678012#M18700</link>
      <description>&lt;P&gt;Query:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;|tstats count where index=xxx host=host1   sourcetype=newsourcetype by PREFIX(type:) _time
|rename type: as Types
|timechart span=1d values(count) by Types
|eval Total=Model1 +Model2+ Model3+ Model4
|fillnull value=0&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;OUTPUT:&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;_time&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;Model1&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;Model2&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;Model3&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;Model4&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;Total&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;2021-04-12&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;2&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;0&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;1&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;4&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;2021-04-13&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;0&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;4&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;0&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;0&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;2021-04-14&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;8&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;2&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;10&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;4&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;24&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;2021-04-15&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;3&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;0&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;2&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;8&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;2021-04-16&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;1&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;4&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;2&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;2&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;9&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;EXPECTED OUTPUT:&lt;/STRONG&gt;&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;_time&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;Model1&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;Model2&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;Model3&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;Model4&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;Total&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;2021-04-12&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;2&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;0&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;1&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;4&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;7&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;2021-04-13&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;0&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;4&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;0&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;0&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;2021-04-14&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;8&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;2&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;10&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;4&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;24&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;2021-04-15&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;3&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;0&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;2&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;8&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;13&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;2021-04-16&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;1&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;4&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;2&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;2&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;9&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Mon, 19 Feb 2024 20:54:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Custom-Search/m-p/678012#M18700</guid>
      <dc:creator>vishwa</dc:creator>
      <dc:date>2024-02-19T20:54:17Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Search</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Custom-Search/m-p/678017#M18701</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/251452"&gt;@vishwa&lt;/a&gt;&amp;nbsp;I&amp;nbsp;suspect your fields are not actually coming out as Model1 etc, i.e. the may have some strange characters in there. You can either try to figure out what the Types field values are before you do the timechart by doing something like&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;|tstats count where index=xxx host=host1   sourcetype=newsourcetype by PREFIX(type:) _time
|rename type: as Types
| head 10
| eval types=":".Types.":", len=len(Types)
| table Types types len&lt;/LI-CODE&gt;&lt;P&gt;to see if there are any odd characters or the len does not come out as 8.&lt;/P&gt;&lt;P&gt;The simples thing to do though is to not care about the names and just add 'addtotals', i.e.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;|tstats count where index=xxx host=host1   sourcetype=newsourcetype by PREFIX(type:) _time
| rename type: as Types
| timechart span=1d values(count) by Types
| addtotals&lt;/LI-CODE&gt;&lt;P&gt;which will add up all the numeric fields and create a new field called Total&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2024 22:16:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Custom-Search/m-p/678017#M18701</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2024-02-19T22:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Search</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Custom-Search/m-p/678027#M18702</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/6367"&gt;@bowesmana&lt;/a&gt;&amp;nbsp;, Thank you!!!! this query worked&lt;/P&gt;&lt;PRE&gt;|tstats count where index=xxx host=host1   sourcetype=newsourcetype by PREFIX(type:) _time
| rename type: as Types
| timechart span=1d values(count) by Types
| addtotals&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2024 00:08:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Custom-Search/m-p/678027#M18702</guid>
      <dc:creator>vishwa</dc:creator>
      <dc:date>2024-02-20T00:08:17Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Search</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Custom-Search/m-p/678033#M18703</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/251452"&gt;@vishwa&lt;/a&gt;&amp;nbsp;re:mvstats - did you know that Splunk natively supports min/max/avg/sum on mvfields.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2024 01:39:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Custom-Search/m-p/678033#M18703</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2024-02-20T01:39:45Z</dc:date>
    </item>
  </channel>
</rss>

