<?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: Customize sourcetype display in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Customize-sourcetype-display/m-p/181022#M52179</link>
    <description>&lt;P&gt;Which answer are you going to accept now? But, since the problem was the &lt;STRONG&gt;source&lt;/STRONG&gt;   i think you should  accept mine.&lt;/P&gt;</description>
    <pubDate>Wed, 06 May 2015 13:33:41 GMT</pubDate>
    <dc:creator>stephanefotso</dc:creator>
    <dc:date>2015-05-06T13:33:41Z</dc:date>
    <item>
      <title>Customize sourcetype display</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Customize-sourcetype-display/m-p/181018#M52175</link>
      <description>&lt;P&gt;Im monitoring 2 harddrive usage from a server.&lt;/P&gt;

&lt;P&gt;This is my query : &lt;/P&gt;

&lt;P&gt;index="perfmon7days" earliest=-60m sourcetype="WMI:LocalPhysicalDisk_DFSR" OR sourcetype="WMI:LocalPhysicalDisk_STAGING" | eval _custom=if(source=="WMI:LocalPhysicalDisk_DFSR","DFSR","STAGING") | timechart span="5m" max(PercentDiskWriteTime) as "Write" max(PercentDiskReadTime) as "Read" by _custom&lt;/P&gt;

&lt;P&gt;So, basically, I want to have 4 Lines : Read:DFSR, Read:Staging, Write:DFSR and Write:Staging.&lt;/P&gt;

&lt;P&gt;With this query, I only have READ Staging and Write Staging since it look like I fall in the "ELSE" everytime.&lt;/P&gt;

&lt;P&gt;If I use this query, it work :&lt;/P&gt;

&lt;P&gt;index="perfmon7days" earliest=-60m sourcetype="WMI:LocalPhysicalDisk_DFSR" OR sourcetype="WMI:LocalPhysicalDisk_STAGING" | eval _custom=if(source=="WMI:LocalPhysicalDisk_DFSR","DFSR","STAGING") | timechart span="5m" max(PercentDiskWriteTime) as "Write" max(PercentDiskReadTime) as "Read" by sourcetype&lt;/P&gt;

&lt;P&gt;but I get : Read:WMI:LocalPhysicalDisk_DFSR, Read:WMI:LocalPhysicalDisk_STAGING, Write:WMI:LocalPhysicalDisk_DFSR and Write:WMI:LocalPhysicalDisk_STAGING.&lt;/P&gt;

&lt;P&gt;This is not looking good in my timechart legend.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;

&lt;P&gt;Jean-Frederic&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 19:50:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Customize-sourcetype-display/m-p/181018#M52175</guid>
      <dc:creator>jeanfrederic</dc:creator>
      <dc:date>2020-09-28T19:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: Customize sourcetype display</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Customize-sourcetype-display/m-p/181019#M52176</link>
      <description>&lt;P&gt;index="perfmon7days" earliest=-60m sourcetype="WMI:LocalPhysicalDisk_DFSR" OR sourcetype="WMI:LocalPhysicalDisk_STAGING" | eval _custom=if(source=="WMI:LocalPhysicalDisk_DFSR","DFSR","STAGING") | timechart span="5m" max(PercentDiskWriteTime) as "Write" max(PercentDiskReadTime) as "Read" by sourcetype | rename *WMI:LocalPhysicalDisk_DFSR AS *DFSR | rename *WMI:LocalPhysicalDisk_Staging AS *Staging&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 19:50:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Customize-sourcetype-display/m-p/181019#M52176</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2020-09-28T19:50:08Z</dc:date>
    </item>
    <item>
      <title>Re: Customize sourcetype display</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Customize-sourcetype-display/m-p/181020#M52177</link>
      <description>&lt;P&gt;Hello! Please let me know. Did you have a &lt;STRONG&gt;source&lt;/STRONG&gt; named   &lt;STRONG&gt;WMI:LocalPhysicalDisk_DFSR&lt;/STRONG&gt;  in your events? Please take the first query and change your &lt;CODE&gt;if (soure=.......&lt;/CODE&gt;    with &lt;CODE&gt;if (sourcetype=....&lt;/CODE&gt;.and let me know what happen.&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 05 May 2015 21:39:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Customize-sourcetype-display/m-p/181020#M52177</guid>
      <dc:creator>stephanefotso</dc:creator>
      <dc:date>2015-05-05T21:39:20Z</dc:date>
    </item>
    <item>
      <title>Re: Customize sourcetype display</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Customize-sourcetype-display/m-p/181021#M52178</link>
      <description>&lt;P&gt;Thanks Stephano and Woodcock, both solution worked... it was in fact my source was "case sensitive"..... so, it was not working since my real source was "WMI:LocalPhysicalDisk_dfsr" &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Thanks, it's much appreciated !&lt;/P&gt;</description>
      <pubDate>Wed, 06 May 2015 12:16:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Customize-sourcetype-display/m-p/181021#M52178</guid>
      <dc:creator>jeanfrederic</dc:creator>
      <dc:date>2015-05-06T12:16:24Z</dc:date>
    </item>
    <item>
      <title>Re: Customize sourcetype display</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Customize-sourcetype-display/m-p/181022#M52179</link>
      <description>&lt;P&gt;Which answer are you going to accept now? But, since the problem was the &lt;STRONG&gt;source&lt;/STRONG&gt;   i think you should  accept mine.&lt;/P&gt;</description>
      <pubDate>Wed, 06 May 2015 13:33:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Customize-sourcetype-display/m-p/181022#M52179</guid>
      <dc:creator>stephanefotso</dc:creator>
      <dc:date>2015-05-06T13:33:41Z</dc:date>
    </item>
  </channel>
</rss>

