<?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 to question mark fields in Knowledge Management</title>
    <link>https://community.splunk.com/t5/Knowledge-Management/How-to-question-mark-fields/m-p/324846#M5565</link>
    <description>&lt;P&gt;@harishyhrk, if your current query is giving your Total_Time, Average and Minimum Columns for two Environments and you need it to be inversed, you should use the &lt;CODE&gt;transpose&lt;/CODE&gt; command as the final pipe in your current query i.e.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;YourCurrentSearch&amp;gt;
  | transpose header_field="Environment" column_name="Environment"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Following is a run anywhere search based on Splunk's _internal index. (PS: All data/stats is cooked up to generate some chart as per what you currently have).&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/4203iB38C308E23804669/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;PRE&gt;&lt;CODE&gt;index=_internal sourcetype=splunkd component!="ConfContentsCache" (log_level="WARN" OR log_level="ERROR")
| stats sum(date_second) as Total_Time avg(date_second) as Average min(date_second) as Minimum by log_level
| replace "ERROR" with "OpenShift" in log_level
| replace "WARN" with "Onpremises" in log_level
| rename log_level as Environment
| transpose header_field=Environment column_name=Environment
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 24 Jan 2018 22:03:01 GMT</pubDate>
    <dc:creator>niketn</dc:creator>
    <dc:date>2018-01-24T22:03:01Z</dc:date>
    <item>
      <title>How to question mark fields</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/How-to-question-mark-fields/m-p/324843#M5562</link>
      <description>&lt;P&gt;How to mark the fields with a question.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2018 17:06:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/How-to-question-mark-fields/m-p/324843#M5562</guid>
      <dc:creator>harishyhrk</dc:creator>
      <dc:date>2018-01-23T17:06:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to question mark fields</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/How-to-question-mark-fields/m-p/324844#M5563</link>
      <description>&lt;P&gt;Try with column chart with stacked option (no Trellies)&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2018 19:31:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/How-to-question-mark-fields/m-p/324844#M5563</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-01-23T19:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to question mark fields</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/How-to-question-mark-fields/m-p/324845#M5564</link>
      <description>&lt;P&gt;Actually I wanted to say non-stacked option (sorry about that). I create a runanywhere search to generate sample data as yours and use basic column chart for visualization and got this. Does it match what you need?&lt;/P&gt;

&lt;P&gt;Search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| gentimes start=-1 | eval temp="openpremisis#10.1111#8.2222#2.33333 openshift#12.4444#8.55555#2.66666" | table temp  | makemv temp | mvexpand temp | rename temp as _raw | rex "(?&amp;lt;Environment&amp;gt;.+)#(?&amp;lt;Total&amp;gt;.+)#(?&amp;lt;Average&amp;gt;.+)#(?&amp;lt;Minimum&amp;gt;.+)"  | table Environment Total Average Minimum
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Output chart:&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/4202i7469F4169236340C/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>Wed, 24 Jan 2018 17:45:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/How-to-question-mark-fields/m-p/324845#M5564</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-01-24T17:45:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to question mark fields</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/How-to-question-mark-fields/m-p/324846#M5565</link>
      <description>&lt;P&gt;@harishyhrk, if your current query is giving your Total_Time, Average and Minimum Columns for two Environments and you need it to be inversed, you should use the &lt;CODE&gt;transpose&lt;/CODE&gt; command as the final pipe in your current query i.e.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;YourCurrentSearch&amp;gt;
  | transpose header_field="Environment" column_name="Environment"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Following is a run anywhere search based on Splunk's _internal index. (PS: All data/stats is cooked up to generate some chart as per what you currently have).&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/4203iB38C308E23804669/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;PRE&gt;&lt;CODE&gt;index=_internal sourcetype=splunkd component!="ConfContentsCache" (log_level="WARN" OR log_level="ERROR")
| stats sum(date_second) as Total_Time avg(date_second) as Average min(date_second) as Minimum by log_level
| replace "ERROR" with "OpenShift" in log_level
| replace "WARN" with "Onpremises" in log_level
| rename log_level as Environment
| transpose header_field=Environment column_name=Environment
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 24 Jan 2018 22:03:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/How-to-question-mark-fields/m-p/324846#M5565</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-01-24T22:03:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to question mark fields</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/How-to-question-mark-fields/m-p/324847#M5566</link>
      <description>&lt;P&gt;@harishyhrk, I am not sure if this was intentional, seems like you have wiped off your question with a new one but with only partial information. Requesting you to retain your original question here since answers have been provided with respect to the same. If the issue has been resolved, requesting you to accept the same as well.&lt;/P&gt;

&lt;P&gt;Also, for a question on different lines, requesting you to post a new question.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2018 04:45:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/How-to-question-mark-fields/m-p/324847#M5566</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-01-26T04:45:47Z</dc:date>
    </item>
  </channel>
</rss>

