<?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: list events with field changed by other field in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/list-events-with-field-changed-by-other-field/m-p/467990#M131759</link>
    <description>&lt;P&gt;Since you already have the correct results with &lt;CODE&gt;streamstats&lt;/CODE&gt;, you should be able to use &lt;CODE&gt;table&lt;/CODE&gt; to display the desired fields.&lt;/P&gt;</description>
    <pubDate>Thu, 06 Feb 2020 14:26:53 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2020-02-06T14:26:53Z</dc:date>
    <item>
      <title>list events with field changed by other field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/list-events-with-field-changed-by-other-field/m-p/467989#M131758</link>
      <description>&lt;P&gt;Hi, I have an index with events such as:&lt;BR /&gt;
CITY ,          TICKET,     CREATION_DATE,          OTHER METADATA FIELDS&lt;BR /&gt;
Paris ,           0001,         01 jan 2020,                          .......&lt;BR /&gt;
Rome,          0002,         03 jan 2020,                          .......&lt;BR /&gt;
Paris,            0003,         05 jan 2020,                          .......&lt;BR /&gt;
Berlin,          0004,         08 jan 2020,                          .......&lt;BR /&gt;
Berlin,          0006,         09 jan 2020,                          .......&lt;BR /&gt;
Paris,            0003,         05 jan 2020,                         .......&lt;BR /&gt;
Rome,         0002,         03 jan 2020,                          .......&lt;BR /&gt;
Rome,          0009 ,       10 jan 2020,                          .......&lt;BR /&gt;
Paris,            0007,        07 jan 2020,                          .......&lt;BR /&gt;
Berlin,          0006 ,       09 jan 2020,                          .......&lt;/P&gt;

&lt;P&gt;I'd like to see which CITIES have more than 2 &lt;EM&gt;different&lt;/EM&gt; tickets within 14 days; so i'd like to get all the events, with all its metadata, ordered by CITY, with &lt;EM&gt;different&lt;/EM&gt;  TICKET from the previous one (the previous in CREATION_DATE) , with the additional info about the difference in days from the previous ticket (DAYS_DIFF);  with these added conditions:&lt;BR /&gt;
 only if  DAYS_DIFF is &amp;lt; 14 AND the number of different  TICKET, grouped by CITY,  is &amp;gt; 2.&lt;BR /&gt;
The first event by city has to be listed as well, with a "-"  in the DAYS_DIFF field.&lt;BR /&gt;
So in my case: only Paris has 3 different  TICKET, each with DAYS_DIFF &amp;lt;14.  ok!&lt;BR /&gt;&lt;BR /&gt;
Berlin and Rome have only 2 different  TICKET .  Not listed! &lt;BR /&gt;
Desiderata result:&lt;BR /&gt;
CITY,            TICKET,    CREATION_DATE ,  DAYS_DIFF ,    OTHER METADATA FIELDS&lt;BR /&gt;
Paris,            0001,        01 jan 2020 ,               -               ,         .....&lt;BR /&gt;
Paris,            0003,        05 jan 2020 ,               5               ,         ....&lt;BR /&gt;
Paris ,           0007,        07 jan 2020 ,               2               ,         ....&lt;BR /&gt;
How can I achieve this result? &lt;BR /&gt;
I've tried with streamstats: I have the correct results, but listed by rows with n-ples CITY, OLD_EVENT, NEW_EVENT ,DAYS_DIFF ; I'd like to have the above visualization instead.&lt;BR /&gt;
Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:07:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/list-events-with-field-changed-by-other-field/m-p/467989#M131758</guid>
      <dc:creator>margie68</dc:creator>
      <dc:date>2020-09-30T04:07:51Z</dc:date>
    </item>
    <item>
      <title>Re: list events with field changed by other field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/list-events-with-field-changed-by-other-field/m-p/467990#M131759</link>
      <description>&lt;P&gt;Since you already have the correct results with &lt;CODE&gt;streamstats&lt;/CODE&gt;, you should be able to use &lt;CODE&gt;table&lt;/CODE&gt; to display the desired fields.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2020 14:26:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/list-events-with-field-changed-by-other-field/m-p/467990#M131759</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-02-06T14:26:53Z</dc:date>
    </item>
  </channel>
</rss>

