<?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 How to pick the specific log time? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-pick-the-specific-log-time/m-p/624356#M217083</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;My lead give some task .To create a table, we have lot of source type ... source type have the different states which means up and down.the source type is up we get one log msg , suppose source type is down we get log each 5min once.....in one day we have more than 1also posible...now how I take the first down msg after up&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 15 Dec 2022 14:45:58 GMT</pubDate>
    <dc:creator>surens</dc:creator>
    <dc:date>2022-12-15T14:45:58Z</dc:date>
    <item>
      <title>How to pick the specific log time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-pick-the-specific-log-time/m-p/624356#M217083</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;My lead give some task .To create a table, we have lot of source type ... source type have the different states which means up and down.the source type is up we get one log msg , suppose source type is down we get log each 5min once.....in one day we have more than 1also posible...now how I take the first down msg after up&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 14:45:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-pick-the-specific-log-time/m-p/624356#M217083</guid>
      <dc:creator>surens</dc:creator>
      <dc:date>2022-12-15T14:45:58Z</dc:date>
    </item>
    <item>
      <title>Re: To pick the specific log time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-pick-the-specific-log-time/m-p/624361#M217087</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/249234"&gt;@surens&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;using eval, you have to define the status, something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=your_index
| eval status=case(state="message_up_1!,"up",state="message_up_2!,"up",state="message_up_3!,"up",state="message_down_1!,"down",state="message_down_2!,"down",state="message_down_3!,"down")
| table _time status&lt;/LI-CODE&gt;&lt;P&gt;then you can also have statistics or time distributions.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 12:41:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-pick-the-specific-log-time/m-p/624361#M217087</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-12-15T12:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: To pick the specific log time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-pick-the-specific-log-time/m-p/624504#M217114</link>
      <description>&lt;P&gt;It get latest time of the status only I want know the earliest time . Like 1 Down msg time after the up&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2022 06:31:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-pick-the-specific-log-time/m-p/624504#M217114</guid>
      <dc:creator>surens</dc:creator>
      <dc:date>2022-12-16T06:31:38Z</dc:date>
    </item>
    <item>
      <title>Re: To pick the specific log time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-pick-the-specific-log-time/m-p/624510#M217119</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/249234"&gt;@surens&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;this is one of the few cases that I use transaction command:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=your_index
| transaction startswith="state=message_up_1!" OR "state=message_up_2! OR "state=message_up_3" endswith="state=message_down_2!" OR "state=message_down_2!" OR state="message_down_3!"
| table _time other_fields&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2022 07:25:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-pick-the-specific-log-time/m-p/624510#M217119</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-12-16T07:25:44Z</dc:date>
    </item>
  </channel>
</rss>

