<?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: timechart and trendline command in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/timechart-and-trendline-command/m-p/696657#M236761</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;Yes, env and tenant are already extracted, yes, we need stat broken by env and tenant as well as time&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{"datetime":"08-19-2024 10:40:30.196 +1000","log_level":"INFO","component":"Hostwide","data":{"cpu_arch":"x86_64","os_name":"Linux","os_name_ext":"Linux","os_build":"#1 ABC Thu Apr 4 03:33:23 EDT 2024","os_version":"3.10.0-1160.118","instance_guid":"ABCDEFGH","splunk_version":"9.2.1","mem":"382641.051","mem_used":"41983.578","swap":"511.996","swap_used":"511.996","pg_paged_out":"50842005897","pg_swapped_out":"164124","forks":"00000600","cpu_count":"24","virtual_cpu_count":"48","runnable_process_count":"19","normalized_load_avg_1min":"1.14","cpu_user_pct":"45.35","cpu_system_pct":"10.68","cpu_idle_pct":"43.98"}}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 19 Aug 2024 00:46:00 GMT</pubDate>
    <dc:creator>VijaySrrie</dc:creator>
    <dc:date>2024-08-19T00:46:00Z</dc:date>
    <item>
      <title>timechart and trendline command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-and-trendline-command/m-p/696115#M236603</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;Need help with Timechart and trendline command for below query&lt;BR /&gt;Both timechart and trendline command are not working&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index=_introspection sourcetype=splunk_resource_usage component=Hostwide
| eval total_cpu_usage=('data.cpu_system_pct' + 'data.cpu_user_pct')
| stats Perc90(total_cpu_usage) AS cpu_usage latest(_time) as _time by Env Tenant
| timechart span=12h values(cpu_usage) as CPU
| trendline sma2(CPU) AS trend&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 13 Aug 2024 12:08:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-and-trendline-command/m-p/696115#M236603</guid>
      <dc:creator>VijaySrrie</dc:creator>
      <dc:date>2024-08-13T12:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: timechart and trendline command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-and-trendline-command/m-p/696123#M236604</link>
      <description>&lt;P&gt;What is it you are trying to achieve?&lt;/P&gt;&lt;P&gt;At the moment, you are getting one stats result for each Env Tenant combination with the latest time stamp for that Env Tenant. This doesn't sound like something useful to timechart or trend.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2024 13:23:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-and-trendline-command/m-p/696123#M236604</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-08-13T13:23:22Z</dc:date>
    </item>
    <item>
      <title>Re: timechart and trendline command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-and-trendline-command/m-p/696204#M236620</link>
      <description>&lt;P&gt;I want to know how much CPU is utilized in our environment along with the trendline&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;</description>
      <pubDate>Tue, 13 Aug 2024 23:27:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-and-trendline-command/m-p/696204#M236620</guid>
      <dc:creator>VijaySrrie</dc:creator>
      <dc:date>2024-08-13T23:27:48Z</dc:date>
    </item>
    <item>
      <title>Re: timechart and trendline command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-and-trendline-command/m-p/696229#M236634</link>
      <description>&lt;P&gt;Please share some representative anonymised sample events in a code block&lt;/P&gt;&lt;P&gt;How often do you want to sample the cpu used?&lt;/P&gt;&lt;P&gt;Are Env and Tenant already extracted?&lt;/P&gt;&lt;P&gt;Do you want the stat broken down by Env and Tenant as well as time or some other dimensions?&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2024 07:24:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-and-trendline-command/m-p/696229#M236634</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-08-14T07:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: timechart and trendline command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-and-trendline-command/m-p/696657#M236761</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;Yes, env and tenant are already extracted, yes, we need stat broken by env and tenant as well as time&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{"datetime":"08-19-2024 10:40:30.196 +1000","log_level":"INFO","component":"Hostwide","data":{"cpu_arch":"x86_64","os_name":"Linux","os_name_ext":"Linux","os_build":"#1 ABC Thu Apr 4 03:33:23 EDT 2024","os_version":"3.10.0-1160.118","instance_guid":"ABCDEFGH","splunk_version":"9.2.1","mem":"382641.051","mem_used":"41983.578","swap":"511.996","swap_used":"511.996","pg_paged_out":"50842005897","pg_swapped_out":"164124","forks":"00000600","cpu_count":"24","virtual_cpu_count":"48","runnable_process_count":"19","normalized_load_avg_1min":"1.14","cpu_user_pct":"45.35","cpu_system_pct":"10.68","cpu_idle_pct":"43.98"}}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2024 00:46:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-and-trendline-command/m-p/696657#M236761</guid>
      <dc:creator>VijaySrrie</dc:creator>
      <dc:date>2024-08-19T00:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: timechart and trendline command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-and-trendline-command/m-p/696676#M236764</link>
      <description>&lt;P&gt;You can't timechart by more than 2 dimensions and _time is one of those, try combining Env and Tenant&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=_introspection sourcetype=splunk_resource_usage component=Hostwide
| eval total_cpu_usage=('data.cpu_system_pct' + 'data.cpu_user_pct')
| eval EnvTenant=Env.":".Tenant
| timechart Perc90(total_cpu_usage) AS cpu_usage span=12h useother=f by EnvTenant&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 19 Aug 2024 09:06:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-and-trendline-command/m-p/696676#M236764</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-08-19T09:06:24Z</dc:date>
    </item>
    <item>
      <title>Re: timechart and trendline command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-and-trendline-command/m-p/697128#M236859</link>
      <description>&lt;LI-CODE lang="markup"&gt;index=_introspection sourcetype=splunk_resource_usage host IN ("hostname" ) component=Hostwide
| eval total_cpu_usage=('data.cpu_system_pct' + 'data.cpu_user_pct')
| eval Tenant=case(match(host,"name"),"Core",match(host,"name"),"Enterprise Security",match(host,"name"),"Critical Reports",match(host,"hostname"),"Mgmt",match(host,"hostname"),"IDX",match(host,"hostname"),"AWE",match(host,"hostname"),"ABC",1==1,host)
| eval Env=case(match(host,"hostname"),"Prod",match(host,"hostname"),"E2E",match(host,"hostname"),"ABC",1==1,splunk_server)
| fields host_zone Tenant _time total_cpu_usage
| table host_zone Tenant _time total_cpu_usage | search host_zone="pr" Tenant="Core"
| bin span=24h aligntime=@d
_time
| stats Perc90(total_cpu_usage) AS cpu_usage BY _time
| trendline sma2(cpu_usage) AS trend | fields * trend&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 23 Aug 2024 10:52:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-and-trendline-command/m-p/697128#M236859</guid>
      <dc:creator>VijaySrrie</dc:creator>
      <dc:date>2024-08-23T10:52:37Z</dc:date>
    </item>
  </channel>
</rss>

