<?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 can I normalize timechart with field values having wide variation in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-normalize-timechart-with-field-values-having-wide/m-p/414613#M171879</link>
    <description>&lt;P&gt;many ways to go about it,&lt;/P&gt;

&lt;P&gt;you can use the log button and not the linear button&lt;BR /&gt;
you can use a single value visualization with trellis&lt;BR /&gt;
you can present the percent of events from the count &lt;BR /&gt;
and other ways &lt;/P&gt;

&lt;P&gt;try this query anywhere and work with different options:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  | gentimes start=-2 increment=5m
    | eval _time = starttime
    | eval http_rc = "200,404,500"
    | makemv delim="," http_rc
    | mvexpand http_rc
    | eval count_of_code = case(http_rc=="200",random()%200000 + 1000,http_rc=="404",random()%20,http_rc=="500",random()%30)
    | timechart span=10m sum(count_of_code) as total_count by http_rc
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;some screen shots for reference:&lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/6895iE395C7AB927D61F3/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/6896iA407D305A0BE795A/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 12 Apr 2019 17:44:11 GMT</pubDate>
    <dc:creator>adonio</dc:creator>
    <dc:date>2019-04-12T17:44:11Z</dc:date>
    <item>
      <title>How can I normalize timechart with field values having wide variation</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-normalize-timechart-with-field-values-having-wide/m-p/414612#M171878</link>
      <description>&lt;P&gt;Have a log file that has http response codes in a particular field. I am doing timechart on it but as the 200 responses are in millions and 4xx and 5xx are in thousands, any deviation of 4xx/5xx is not easily visible. I have to create charts for individual response code to see it. How can I put all response codes in the same timechart and normalize so that any deviations in any response code easily visible?&lt;/P&gt;

&lt;P&gt;index=xyz sourcetype=*log | timechart span=5m count by http_rc | ....&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2019 16:48:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-normalize-timechart-with-field-values-having-wide/m-p/414612#M171878</guid>
      <dc:creator>smiththebest</dc:creator>
      <dc:date>2019-04-12T16:48:53Z</dc:date>
    </item>
    <item>
      <title>Re: How can I normalize timechart with field values having wide variation</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-normalize-timechart-with-field-values-having-wide/m-p/414613#M171879</link>
      <description>&lt;P&gt;many ways to go about it,&lt;/P&gt;

&lt;P&gt;you can use the log button and not the linear button&lt;BR /&gt;
you can use a single value visualization with trellis&lt;BR /&gt;
you can present the percent of events from the count &lt;BR /&gt;
and other ways &lt;/P&gt;

&lt;P&gt;try this query anywhere and work with different options:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  | gentimes start=-2 increment=5m
    | eval _time = starttime
    | eval http_rc = "200,404,500"
    | makemv delim="," http_rc
    | mvexpand http_rc
    | eval count_of_code = case(http_rc=="200",random()%200000 + 1000,http_rc=="404",random()%20,http_rc=="500",random()%30)
    | timechart span=10m sum(count_of_code) as total_count by http_rc
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;some screen shots for reference:&lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/6895iE395C7AB927D61F3/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/6896iA407D305A0BE795A/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2019 17:44:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-normalize-timechart-with-field-values-having-wide/m-p/414613#M171879</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2019-04-12T17:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: How can I normalize timechart with field values having wide variation</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-normalize-timechart-with-field-values-having-wide/m-p/414614#M171880</link>
      <description>&lt;P&gt;Thank you so much, that is what I have been looking for and did not find in answers or was not able to locate!&lt;/P&gt;</description>
      <pubDate>Sat, 13 Apr 2019 13:52:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-normalize-timechart-with-field-values-having-wide/m-p/414614#M171880</guid>
      <dc:creator>smiththebest</dc:creator>
      <dc:date>2019-04-13T13:52:39Z</dc:date>
    </item>
  </channel>
</rss>

