<?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: timechart for multiple, but similar, itemnames in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/timechart-for-multiple-but-similar-itemnames/m-p/399397#M169426</link>
    <description>&lt;P&gt;Could you explain what type of filters you'd apply when you want to condense the output? If you're looking to plot timechart for specific type of ItemNames, you can add a search filter just before your time chart. E.g.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search
| where like(ItemName,"%YourFilter%") 
| timechart span=xxx values(value) by ItemName
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 15 May 2018 21:14:23 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2018-05-15T21:14:23Z</dc:date>
    <item>
      <title>timechart for multiple, but similar, itemnames</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-for-multiple-but-similar-itemnames/m-p/399395#M169424</link>
      <description>&lt;P&gt;I am attempting to grab data from a set of Items that all have relatively similar names, i.e.:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;ItemName = LocX_VarY.DataTypeZ
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Where the individual words are descriptors of where the data point was taken from, such as:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Location0001_Windspeed.10M
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Now, say that I want to create a timechart that plots multiple different items, like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Location0001_Windspeed.Below10M
Location0001_Windspeed.10M
Location0001_Windspeed.100M
Location0038_Windspeed.Below10M
etc.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;How can I structure my search function&lt;/STRONG&gt; in such a way that I don't have to manually enter in all of the locations/datatypes to get all applicable ItemNames and the data that corresponds to them.&lt;/P&gt;

&lt;P&gt;Note that the examples provided were just examples, not representative of what the data looks like.&lt;/P&gt;</description>
      <pubDate>Tue, 15 May 2018 20:31:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-for-multiple-but-similar-itemnames/m-p/399395#M169424</guid>
      <dc:creator>splunk_question</dc:creator>
      <dc:date>2018-05-15T20:31:45Z</dc:date>
    </item>
    <item>
      <title>Re: timechart for multiple, but similar, itemnames</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-for-multiple-but-similar-itemnames/m-p/399396#M169425</link>
      <description>&lt;P&gt;I can do&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| timechart span=xxx values(value) by ItemName
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But I'm looking for a more precise way to do it, especially when I want to condense the output downs into specific subsets of data.&lt;/P&gt;

&lt;P&gt;Note that, in addition to a "Location 0001" and "Windspeed" variables, there would be dozens of others for each of those. Sorting by Locations and their Particular Variables or Particular Variable at a given Location is important.&lt;/P&gt;</description>
      <pubDate>Tue, 15 May 2018 20:44:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-for-multiple-but-similar-itemnames/m-p/399396#M169425</guid>
      <dc:creator>splunk_question</dc:creator>
      <dc:date>2018-05-15T20:44:18Z</dc:date>
    </item>
    <item>
      <title>Re: timechart for multiple, but similar, itemnames</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-for-multiple-but-similar-itemnames/m-p/399397#M169426</link>
      <description>&lt;P&gt;Could you explain what type of filters you'd apply when you want to condense the output? If you're looking to plot timechart for specific type of ItemNames, you can add a search filter just before your time chart. E.g.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search
| where like(ItemName,"%YourFilter%") 
| timechart span=xxx values(value) by ItemName
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 15 May 2018 21:14:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-for-multiple-but-similar-itemnames/m-p/399397#M169426</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-05-15T21:14:23Z</dc:date>
    </item>
    <item>
      <title>Re: timechart for multiple, but similar, itemnames</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-for-multiple-but-similar-itemnames/m-p/399398#M169427</link>
      <description>&lt;P&gt;Sorry I never responded, I managed to find some data that was structured in a different way to help me accomplish this task. Thanks for the hint on the filter though, that will be extremely helpful in the future.&lt;/P&gt;</description>
      <pubDate>Wed, 23 May 2018 13:09:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-for-multiple-but-similar-itemnames/m-p/399398#M169427</guid>
      <dc:creator>splunk_question</dc:creator>
      <dc:date>2018-05-23T13:09:00Z</dc:date>
    </item>
    <item>
      <title>Re: timechart for multiple, but similar, itemnames</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-for-multiple-but-similar-itemnames/m-p/399399#M169428</link>
      <description>&lt;P&gt;@splunk_questions could you please post the details of the approach you used to solve your issue and accept the same as answer to help others facing similar issue.&lt;/P&gt;</description>
      <pubDate>Wed, 23 May 2018 13:30:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-for-multiple-but-similar-itemnames/m-p/399399#M169428</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-05-23T13:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: timechart for multiple, but similar, itemnames</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-for-multiple-but-similar-itemnames/m-p/399400#M169429</link>
      <description>&lt;P&gt;This would break the individual parts of the ItemNames out:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex field=ItemName "(?&amp;lt;LocX&amp;gt;[^_]+)_(?&amp;lt;VarY&amp;gt;[^\.]+)\.(?&amp;lt;DataTypeZ&amp;gt;.+)$"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then you could use post-processing such as &lt;CODE&gt;| stats count by LocX | fields locX&lt;/CODE&gt; to put them in individual multiselect dropdowns for your user to choose between. &lt;/P&gt;

&lt;P&gt;However, when you put them into &lt;CODE&gt;timechart&lt;/CODE&gt;, you are probably going to want to merge the ItemName back together, and/or perhaps use trellis to spread the timecharts over multiple panels.&lt;/P&gt;</description>
      <pubDate>Wed, 23 May 2018 18:48:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-for-multiple-but-similar-itemnames/m-p/399400#M169429</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2018-05-23T18:48:24Z</dc:date>
    </item>
  </channel>
</rss>

