<?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 search for and chart multiple values for different sourcetypes? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-and-chart-multiple-values-for-different/m-p/281919#M85095</link>
    <description>&lt;P&gt;The stats command works.. but due to one sourcetype has multi instances &amp;amp; the other has 1, they don't lineup. &lt;/P&gt;

&lt;P&gt;I ended up doing panels w/ a drill downs that worked exceedingly well. Lisa, I think you usually come to the rescue on my questions &amp;amp; you did again (the answer was right but it got me going to an even better answer) ... as always.. thanks for the assistance.  &lt;/P&gt;</description>
    <pubDate>Thu, 27 Oct 2016 23:26:30 GMT</pubDate>
    <dc:creator>clintla</dc:creator>
    <dc:date>2016-10-27T23:26:30Z</dc:date>
    <item>
      <title>How to search for and chart multiple values for different sourcetypes?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-and-chart-multiple-values-for-different/m-p/281915#M85091</link>
      <description>&lt;P&gt;I'm not sure if this is a multisearch or a join or something else, but I want to chart multiple values for different sourcetypes. &lt;/P&gt;

&lt;P&gt;For example:&lt;/P&gt;

&lt;P&gt;Sourcetype A&lt;BR /&gt;
&lt;STRONG&gt;field1&lt;/STRONG&gt; field2 field3 field4&lt;/P&gt;

&lt;P&gt;Sourcetype B&lt;BR /&gt;
&lt;STRONG&gt;field5&lt;/STRONG&gt; field6 field7 field8&lt;/P&gt;

&lt;P&gt;Chart values(field1),  values(field2),  values(field3),  values(field6),  values(field7)&lt;/P&gt;

&lt;P&gt;I want to search for something where the search string will be contained in field 1 &amp;amp; 5 will be the same &amp;amp; then collect all the data from those lines in Sourcetypes A &amp;amp; B&lt;/P&gt;

&lt;P&gt;I get Sourcetype A or B.. but not both. However, in the "Interesting Fields" from the search, I get everything so I know the data is there. &lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2016 00:15:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-and-chart-multiple-values-for-different/m-p/281915#M85091</guid>
      <dc:creator>clintla</dc:creator>
      <dc:date>2016-10-27T00:15:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for and chart multiple values for different sourcetypes?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-and-chart-multiple-values-for-different/m-p/281916#M85092</link>
      <description>&lt;P&gt;What is the current search that you are using?&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2016 00:46:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-and-chart-multiple-values-for-different/m-p/281916#M85092</guid>
      <dc:creator>lquinn</dc:creator>
      <dc:date>2016-10-27T00:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for and chart multiple values for different sourcetypes?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-and-chart-multiple-values-for-different/m-p/281917#M85093</link>
      <description>&lt;P&gt;Seems like this would be a start:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(sourcetype=A field1=*) OR (sourcetype=B field5=*)
| eval newField=coalesce(field1,field5)
| stats values(field2) as field2 values(field3) as field3 values(field4) as field4
        values(field6) as field6 values(field7) as field7 values(field8) as field8 by newField
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But you can't chart multi-valued fields, which is what you will get if you use the values function.&lt;BR /&gt;
Well, I guess you can use the chart command, but you can't get an actual chart... so I used the stats command.&lt;BR /&gt;
What exactly do you want to output?&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2016 01:17:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-and-chart-multiple-values-for-different/m-p/281917#M85093</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2016-10-27T01:17:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for and chart multiple values for different sourcetypes?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-and-chart-multiple-values-for-different/m-p/281918#M85094</link>
      <description>&lt;P&gt;I'm almost wanting a lookup. 2 sources that I'd like to combine into 1 source really. &lt;/P&gt;

&lt;P&gt;so field1 &amp;amp; field5 I want to search (those 2 fields have the same list of items).  So if I search field1. I want to find those all those fields in both sourcetypes.  &lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2016 18:09:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-and-chart-multiple-values-for-different/m-p/281918#M85094</guid>
      <dc:creator>clintla</dc:creator>
      <dc:date>2016-10-27T18:09:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for and chart multiple values for different sourcetypes?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-and-chart-multiple-values-for-different/m-p/281919#M85095</link>
      <description>&lt;P&gt;The stats command works.. but due to one sourcetype has multi instances &amp;amp; the other has 1, they don't lineup. &lt;/P&gt;

&lt;P&gt;I ended up doing panels w/ a drill downs that worked exceedingly well. Lisa, I think you usually come to the rescue on my questions &amp;amp; you did again (the answer was right but it got me going to an even better answer) ... as always.. thanks for the assistance.  &lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2016 23:26:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-and-chart-multiple-values-for-different/m-p/281919#M85095</guid>
      <dc:creator>clintla</dc:creator>
      <dc:date>2016-10-27T23:26:30Z</dc:date>
    </item>
  </channel>
</rss>

