<?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 use multiple fields in timechart command in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/how-to-use-multiple-fields-in-timechart-command/m-p/159162#M44902</link>
    <description>&lt;P&gt;As an fast solution you might combine the two fields into one field with eval and use the result as by clause:&lt;/P&gt;

&lt;P&gt;index=_internal | eval combi=source."#".sourcetype | timechart count by combi&lt;/P&gt;</description>
    <pubDate>Mon, 28 Jul 2014 11:04:46 GMT</pubDate>
    <dc:creator>tom_frotscher</dc:creator>
    <dc:date>2014-07-28T11:04:46Z</dc:date>
    <item>
      <title>how to use multiple fields in timechart command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-use-multiple-fields-in-timechart-command/m-p/159161#M44901</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;How to use &lt;/P&gt;

&lt;P&gt;index="*"|timechart count by sourcetype,source&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jul 2014 10:51:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-use-multiple-fields-in-timechart-command/m-p/159161#M44901</guid>
      <dc:creator>mvaradarajam</dc:creator>
      <dc:date>2014-07-28T10:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: how to use multiple fields in timechart command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-use-multiple-fields-in-timechart-command/m-p/159162#M44902</link>
      <description>&lt;P&gt;As an fast solution you might combine the two fields into one field with eval and use the result as by clause:&lt;/P&gt;

&lt;P&gt;index=_internal | eval combi=source."#".sourcetype | timechart count by combi&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jul 2014 11:04:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-use-multiple-fields-in-timechart-command/m-p/159162#M44902</guid>
      <dc:creator>tom_frotscher</dc:creator>
      <dc:date>2014-07-28T11:04:46Z</dc:date>
    </item>
    <item>
      <title>Re: how to use multiple fields in timechart command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-use-multiple-fields-in-timechart-command/m-p/159163#M44903</link>
      <description>&lt;P&gt;I don't know what exactly you want to know. There are examples for inpage drilldowns in the splunk 6.1 overview app. &lt;A href="https://apps.splunk.com/app/1773/"&gt;https://apps.splunk.com/app/1773/&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;You should be able to take the combi field as a normal token. If you want to split it up again in source and sourcetype, you can use the rex command:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal | eval combi=source."#".sourcetype | rex field=combi "(?&amp;lt;first_part&amp;gt;^.*)#(?&amp;lt;second_part&amp;gt;.*$)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 28 Jul 2014 11:49:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-use-multiple-fields-in-timechart-command/m-p/159163#M44903</guid>
      <dc:creator>tom_frotscher</dc:creator>
      <dc:date>2014-07-28T11:49:38Z</dc:date>
    </item>
  </channel>
</rss>

