<?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 the correlation and chart temperature by failures? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-the-correlation-and-chart-temperature-by-failures/m-p/192438#M55328</link>
    <description>&lt;P&gt;They have the same index, and the same sourcetype. The original files are two different csv-files.&lt;/P&gt;</description>
    <pubDate>Tue, 24 Mar 2015 07:32:32 GMT</pubDate>
    <dc:creator>SilviaGebel</dc:creator>
    <dc:date>2015-03-24T07:32:32Z</dc:date>
    <item>
      <title>How to search the correlation and chart temperature by failures?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-the-correlation-and-chart-temperature-by-failures/m-p/192434#M55324</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;currently I am trying to figure out how to chart the temperature by failures.&lt;/P&gt;

&lt;P&gt;The search I am creating is this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...|eval temperature=abs(temperature)| chart avg(temperature) by failure
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The only result I get in the statistics are the values of failures, but no values of temperature at all.&lt;BR /&gt;
The fields are from different events and the events have different timestamps.&lt;/P&gt;

&lt;P&gt;Is there a possibility to find a correlation between the temperature and the number of failures at that time?&lt;/P&gt;

&lt;P&gt;Thank you for your help!&lt;/P&gt;

&lt;P&gt;Silvia &lt;/P&gt;</description>
      <pubDate>Mon, 23 Mar 2015 16:23:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-the-correlation-and-chart-temperature-by-failures/m-p/192434#M55324</guid>
      <dc:creator>SilviaGebel</dc:creator>
      <dc:date>2015-03-23T16:23:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to search the correlation and chart temperature by failures?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-the-correlation-and-chart-temperature-by-failures/m-p/192435#M55325</link>
      <description>&lt;P&gt;We would need little more information to answer that. Would you be able to provide some sample logs? &lt;/P&gt;</description>
      <pubDate>Mon, 23 Mar 2015 16:28:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-the-correlation-and-chart-temperature-by-failures/m-p/192435#M55325</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2015-03-23T16:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to search the correlation and chart temperature by failures?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-the-correlation-and-chart-temperature-by-failures/m-p/192436#M55326</link>
      <description>&lt;P&gt;these are the events with the fields temperature and failures&lt;/P&gt;

&lt;P&gt;Temperature in C° (24; 23,9; 23,8; 23,7)&lt;/P&gt;

&lt;P&gt;380462;._PLC.CVI.Z010 [\xE5\xA1C]: temperature;03.03.2015 06:04;23,5;\xE5\xA1C;268298&lt;BR /&gt;
380462;._PLC.CVI.Z010 [\xE5\xA1C]: temperature;03.03.2015 06:03;23,4;\xE5\xA1C;268298&lt;BR /&gt;
380462;._PLC.CVI.Z010 [\xE5\xA1C]: temperature;03.03.2015 06:02;23,5;\xE5\xA1C;268298&lt;BR /&gt;
380462;._PLC.CVI.Z010 [\xE5\xA1C]: temperature;03.03.2015 05:52;23,4;\xE5\xA1C;268298&lt;BR /&gt;
380462;._PLC.CVI.Z010 [\xE5\xA1C]: temperature;03.03.2015 05:50;23,3;\xE5\xA1C;268298&lt;BR /&gt;
380462;._PLC.CVI.Z010 [\xE5\xA1C]: temperature;03.03.2015 05:50;23,4;\xE5\xA1C;268298&lt;BR /&gt;
380462;._PLC.CVI.Z010 [\xE5\xA1C]: temperature;03.03.2015 05:49;23,3;\xE5\xA1C;268298&lt;/P&gt;

&lt;P&gt;failures (values are the ascending count of failures that day)&lt;/P&gt;

&lt;P&gt;362290;._PLC.CVI.Z029 [Fehler]: failure;04.03.2015 06:23;3;Fehler;1654&lt;BR /&gt;
362290;._PLC.CVI.Z030 [Fehler]: failure;04.03.2015 06:08;1;Fehler;2871&lt;BR /&gt;
362290;._PLC.CVI.Z029 [Fehler]: failure;04.03.2015 05:56;2;Fehler;1654&lt;BR /&gt;
362290;._PLC.CVI.Z029 [Fehler]: failure;04.03.2015 05:53;1;Fehler;1654&lt;BR /&gt;
362290;._PLC.CVI.Z030 [Fehler]: failure;04.03.2015 04:00;0;Fehler;2871&lt;BR /&gt;
362290;._PLC.CVI.Z029 [Fehler]: failure;04.03.2015 04:00;0;Fehler;1654&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 19:19:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-the-correlation-and-chart-temperature-by-failures/m-p/192436#M55326</guid>
      <dc:creator>SilviaGebel</dc:creator>
      <dc:date>2020-09-28T19:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to search the correlation and chart temperature by failures?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-the-correlation-and-chart-temperature-by-failures/m-p/192437#M55327</link>
      <description>&lt;P&gt;I believe these are two different sourcetypes/logfiles. Do we have any common ground/field/rule based on which these events can be correlated?&lt;/P&gt;</description>
      <pubDate>Mon, 23 Mar 2015 19:55:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-the-correlation-and-chart-temperature-by-failures/m-p/192437#M55327</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2015-03-23T19:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to search the correlation and chart temperature by failures?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-the-correlation-and-chart-temperature-by-failures/m-p/192438#M55328</link>
      <description>&lt;P&gt;They have the same index, and the same sourcetype. The original files are two different csv-files.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Mar 2015 07:32:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-the-correlation-and-chart-temperature-by-failures/m-p/192438#M55328</guid>
      <dc:creator>SilviaGebel</dc:creator>
      <dc:date>2015-03-24T07:32:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to search the correlation and chart temperature by failures?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-the-correlation-and-chart-temperature-by-failures/m-p/192439#M55329</link>
      <description>&lt;P&gt;Your setup is very nasty in that you have combined these 2 datasets as one sourcetype and none of the events in either dataset has any kind of device identifier that can be used to correlate events between the datasets.  I assume that the hot/faulty device is implied by either the &lt;CODE&gt;host&lt;/CODE&gt; or the &lt;CODE&gt;source&lt;/CODE&gt;.  In any case, since you have left us no other alternative, we will have to correlate the events in the datsets by time like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | bucket _time span=1m | stats values(*) AS * by _time | chart avg(temperature) by failure
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This should work but it presumes that you have field extractions working to create the &lt;CODE&gt;temperature&lt;/CODE&gt; and &lt;CODE&gt;failure&lt;/CODE&gt; fields.  If this doesn't work (the events are not joined by same values for &lt;CODE&gt;date_minute&lt;/CODE&gt;, then switch the &lt;CODE&gt;1m&lt;/CODE&gt; to &lt;CODE&gt;10m&lt;/CODE&gt; or even &lt;CODE&gt;1h&lt;/CODE&gt; until you get the correlation working.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Aug 2015 16:24:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-the-correlation-and-chart-temperature-by-failures/m-p/192439#M55329</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-08-10T16:24:30Z</dc:date>
    </item>
  </channel>
</rss>

