<?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: Write a query in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Help-with-search-to-make-report/m-p/646356#M223726</link>
    <description>&lt;P&gt;You could start with something like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=&amp;lt;insex_name&amp;gt; sourcetype=&amp;lt;source_name&amp;gt; earliest=-14d@d latest=@d user@email 
| bin span=1d _time as day
| stats earliest(_time) as first by day user
| fieldformat first=strftime(first,"%Y-%m-%dT%H:%M:%S.%Q")&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 08 Jun 2023 15:36:32 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2023-06-08T15:36:32Z</dc:date>
    <item>
      <title>Help with search to make report?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-search-to-make-report/m-p/646351#M223724</link>
      <description>&lt;P&gt;Hi, dear splunkers, actually im new to splunk and I need to write a query in order to make a report. So, from a logs I have to display for several employees their first connection time for each day for a period of two weeks and have it in output.&amp;nbsp; As i see steps would be to take each day, find&amp;nbsp; time of earliest event and write it in output. How it would be better to implement it? Thanks in advance.&lt;/P&gt;
&lt;P&gt;My draft&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index=&amp;lt;insex_name&amp;gt; sourcetype=&amp;lt;source_name&amp;gt; earliest=-14d latest=-13d user@email | sort _time asc | head 1 | table _time, user | eval 25.05=strftime(_time,"%Y-%m-%dT%H:%M:%S.%Q") | fields - _time&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 08 Jun 2023 15:39:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-search-to-make-report/m-p/646351#M223724</guid>
      <dc:creator>john8745</dc:creator>
      <dc:date>2023-06-08T15:39:10Z</dc:date>
    </item>
    <item>
      <title>Re: Write a query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-search-to-make-report/m-p/646356#M223726</link>
      <description>&lt;P&gt;You could start with something like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=&amp;lt;insex_name&amp;gt; sourcetype=&amp;lt;source_name&amp;gt; earliest=-14d@d latest=@d user@email 
| bin span=1d _time as day
| stats earliest(_time) as first by day user
| fieldformat first=strftime(first,"%Y-%m-%dT%H:%M:%S.%Q")&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 08 Jun 2023 15:36:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-search-to-make-report/m-p/646356#M223726</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-06-08T15:36:32Z</dc:date>
    </item>
  </channel>
</rss>

