<?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: Creating a table that includes a column for date/time of an event in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Creating-a-table-that-includes-a-column-for-date-time-of-an/m-p/554187#M157326</link>
    <description>&lt;LI-CODE lang="markup"&gt;| eval dayssincelastlogin=(relative_time(now(),"@d")-strptime(lastlogindate,"%m/%d/%Y"))/(60*60*24)&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 03 Jun 2021 05:01:11 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2021-06-03T05:01:11Z</dc:date>
    <item>
      <title>Creating a table that includes a column for date/time of an event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Creating-a-table-that-includes-a-column-for-date-time-of-an/m-p/554174#M157324</link>
      <description>&lt;P&gt;Hello! I'll try to keep things as brief and concise as I can, but what you need to know is that I'm currently building a dashboard that tracks various criteria of windows machines, and depending on the conditions of these criteria, a score is assigned to each category, and when a specific host reaches a high enough score, it is considered for decommission.&lt;BR /&gt;&lt;BR /&gt;One of the criteria involved with determining the scoring for whether or the likelihood of a host needing decommission is how long ago somehow has logged into said host.&lt;BR /&gt;&lt;BR /&gt;I was wondering if anyone had any suggestions as to run a search and use eval to add a column containing the recorded time each windows event was received&amp;nbsp;&lt;/P&gt;&lt;P&gt;below is an example of what one of the splunk events looks like using our index&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kuronoa_0-1622686499242.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/14447i92AC28A63844C463/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kuronoa_0-1622686499242.png" alt="Kuronoa_0-1622686499242.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And here is a mockup designed to help better explain what I'm trying to do here:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kuronoa_1-1622686751735.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/14448iE8AA758D44155B88/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kuronoa_1-1622686751735.png" alt="Kuronoa_1-1622686751735.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for taking the time to read my question!&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jun 2021 02:19:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Creating-a-table-that-includes-a-column-for-date-time-of-an/m-p/554174#M157324</guid>
      <dc:creator>Kuronoa</dc:creator>
      <dc:date>2021-06-03T02:19:51Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a table that includes a column for date/time of an event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Creating-a-table-that-includes-a-column-for-date-time-of-an/m-p/554187#M157326</link>
      <description>&lt;LI-CODE lang="markup"&gt;| eval dayssincelastlogin=(relative_time(now(),"@d")-strptime(lastlogindate,"%m/%d/%Y"))/(60*60*24)&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 03 Jun 2021 05:01:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Creating-a-table-that-includes-a-column-for-date-time-of-an/m-p/554187#M157326</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-06-03T05:01:11Z</dc:date>
    </item>
  </channel>
</rss>

