<?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 tstats and inputlookup in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/tstats-and-inputlookup/m-p/675557#M231133</link>
    <description>&lt;P&gt;My current search is -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;| tstats count AS event_count WHERE index=* BY host, _time span=1h&lt;BR /&gt;| append [ | inputlookup Domain_Computers | fields cn, operatingSystem, operatingSystemVersion&lt;BR /&gt;| eval host = coalesce(host, cn)]&lt;BR /&gt;| fillnull value="0" total_events&lt;BR /&gt;| stats sparkline(sum(event_count)) AS event_count_sparkline sum(event_count) AS total_events BY host&lt;/P&gt;&lt;P&gt;How do I get&amp;nbsp;operatingSystem to display in my table?&amp;nbsp; &amp;nbsp;When I add it to the end of my search BY host,&amp;nbsp;operatingSystem my stats break in the table.&lt;/P&gt;</description>
    <pubDate>Fri, 26 Jan 2024 18:33:13 GMT</pubDate>
    <dc:creator>jeradb</dc:creator>
    <dc:date>2024-01-26T18:33:13Z</dc:date>
    <item>
      <title>tstats and inputlookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/tstats-and-inputlookup/m-p/675557#M231133</link>
      <description>&lt;P&gt;My current search is -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;| tstats count AS event_count WHERE index=* BY host, _time span=1h&lt;BR /&gt;| append [ | inputlookup Domain_Computers | fields cn, operatingSystem, operatingSystemVersion&lt;BR /&gt;| eval host = coalesce(host, cn)]&lt;BR /&gt;| fillnull value="0" total_events&lt;BR /&gt;| stats sparkline(sum(event_count)) AS event_count_sparkline sum(event_count) AS total_events BY host&lt;/P&gt;&lt;P&gt;How do I get&amp;nbsp;operatingSystem to display in my table?&amp;nbsp; &amp;nbsp;When I add it to the end of my search BY host,&amp;nbsp;operatingSystem my stats break in the table.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2024 18:33:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/tstats-and-inputlookup/m-p/675557#M231133</guid>
      <dc:creator>jeradb</dc:creator>
      <dc:date>2024-01-26T18:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: tstats and inputlookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/tstats-and-inputlookup/m-p/675558#M231134</link>
      <description>&lt;P&gt;Add the operating system to the list of values returned by &lt;FONT face="courier new,courier"&gt;stats&lt;/FONT&gt; rather than as one of the group-by options.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| stats sparkline(sum(event_count)) AS event_count_sparkline sum(event_count) AS total_events, values(operatingSystem as operatingSystems BY host&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2024 18:37:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/tstats-and-inputlookup/m-p/675558#M231134</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2024-01-26T18:37:01Z</dc:date>
    </item>
  </channel>
</rss>

