<?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: Can I use a regular expression or wildcard inside charting.fieldColors? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Can-I-use-a-regular-expression-or-wildcard-inside-charting/m-p/283856#M85787</link>
    <description>&lt;P&gt;I don't think so, but try it and see if it works... and let us know!&lt;/P&gt;</description>
    <pubDate>Thu, 17 Dec 2015 19:20:25 GMT</pubDate>
    <dc:creator>lguinn2</dc:creator>
    <dc:date>2015-12-17T19:20:25Z</dc:date>
    <item>
      <title>Can I use a regular expression or wildcard inside charting.fieldColors?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-I-use-a-regular-expression-or-wildcard-inside-charting/m-p/283855#M85786</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;I have a timechart with several lines, and I want to set the colors as in charting.fieldColors. However, the field names are dynamic, so I would need to use a regular expression or wildcard in the key; something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;option name="charting.fieldColors"&amp;gt;{ "PREVIEW":0x990000, "TASK_*":0x99CCFF } &amp;lt;/option&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This there anything like this currently possible?&lt;/P&gt;

&lt;P&gt;Thank you&lt;BR /&gt;
John&lt;/P&gt;</description>
      <pubDate>Thu, 17 Dec 2015 17:04:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-I-use-a-regular-expression-or-wildcard-inside-charting/m-p/283855#M85786</guid>
      <dc:creator>johnraftery</dc:creator>
      <dc:date>2015-12-17T17:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use a regular expression or wildcard inside charting.fieldColors?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-I-use-a-regular-expression-or-wildcard-inside-charting/m-p/283856#M85787</link>
      <description>&lt;P&gt;I don't think so, but try it and see if it works... and let us know!&lt;/P&gt;</description>
      <pubDate>Thu, 17 Dec 2015 19:20:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-I-use-a-regular-expression-or-wildcard-inside-charting/m-p/283856#M85787</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2015-12-17T19:20:25Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use a regular expression or wildcard inside charting.fieldColors?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-I-use-a-regular-expression-or-wildcard-inside-charting/m-p/283857#M85788</link>
      <description>&lt;P&gt;I haven't been successful so far.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Dec 2015 09:14:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-I-use-a-regular-expression-or-wildcard-inside-charting/m-p/283857#M85788</guid>
      <dc:creator>johnraftery</dc:creator>
      <dc:date>2015-12-18T09:14:51Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use a regular expression or wildcard inside charting.fieldColors?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-I-use-a-regular-expression-or-wildcard-inside-charting/m-p/283858#M85789</link>
      <description>&lt;P&gt;If anyone knows of an alternative way of assigning color to fields to achieve this, please let me know.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Dec 2015 09:16:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-I-use-a-regular-expression-or-wildcard-inside-charting/m-p/283858#M85789</guid>
      <dc:creator>johnraftery</dc:creator>
      <dc:date>2015-12-18T09:16:26Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use a regular expression or wildcard inside charting.fieldColors?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-I-use-a-regular-expression-or-wildcard-inside-charting/m-p/283859#M85790</link>
      <description>&lt;P&gt;I'd try some quoting &amp;amp; escape character to see, but I believe lguinn has the correct answer.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"Task*"
"Task\.*"
"Task%"
'"Task*"'   
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 18 Dec 2015 11:44:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-I-use-a-regular-expression-or-wildcard-inside-charting/m-p/283859#M85790</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2015-12-18T11:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use a regular expression or wildcard inside charting.fieldColors?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-I-use-a-regular-expression-or-wildcard-inside-charting/m-p/283860#M85791</link>
      <description>&lt;P&gt;Thanks...no luck unfortunately.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Dec 2015 12:17:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-I-use-a-regular-expression-or-wildcard-inside-charting/m-p/283860#M85791</guid>
      <dc:creator>johnraftery</dc:creator>
      <dc:date>2015-12-18T12:17:14Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use a regular expression or wildcard inside charting.fieldColors?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-I-use-a-regular-expression-or-wildcard-inside-charting/m-p/283861#M85792</link>
      <description>&lt;P&gt;Maybe you can do it this way. &lt;CODE&gt;charting.seriesColors&lt;/CODE&gt; assigns the first color in the list to the first field in the results table, the second color to the second field, etc.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; &amp;lt;option name="charting.seriesColors"&amp;gt;[0x1e93c6, 0xf2b827, 0xd6563c, 0x6a5c9e, 0x31a35f]&amp;lt;/option&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;BTW, my example uses the first 5 default color values. &lt;/P&gt;</description>
      <pubDate>Fri, 18 Dec 2015 17:06:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-I-use-a-regular-expression-or-wildcard-inside-charting/m-p/283861#M85792</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2015-12-18T17:06:11Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use a regular expression or wildcard inside charting.fieldColors?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-I-use-a-regular-expression-or-wildcard-inside-charting/m-p/283862#M85793</link>
      <description>&lt;P&gt;Thanks for the suggesion. Unfortunately this won't solve the problem, because there could be any number of fields matching the "TASK_*" regex. So I would need to have 0x99CCFF in the list 100 times, and even then it might not catch all of them.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Dec 2015 17:07:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-I-use-a-regular-expression-or-wildcard-inside-charting/m-p/283862#M85793</guid>
      <dc:creator>johnraftery</dc:creator>
      <dc:date>2015-12-21T17:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use a regular expression or wildcard inside charting.fieldColors?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-I-use-a-regular-expression-or-wildcard-inside-charting/m-p/283863#M85794</link>
      <description>&lt;P&gt;Keep in mind that the timechart command, by default, only shows the "top" 10 fields by default, so it is unlikely that you would need to list 100 fields. And if you are listing 100 fields, how can you read that? Perhaps you should consider some form of grouping prior to charting.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jan 2016 06:39:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-I-use-a-regular-expression-or-wildcard-inside-charting/m-p/283863#M85794</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2016-01-04T06:39:02Z</dc:date>
    </item>
  </channel>
</rss>

