<?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: dedup on Field over time span in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/dedup-on-Field-over-time-span/m-p/688025#M234622</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/268113"&gt;@triva79&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;you could use timechart or dedup:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;your_search&amp;gt;
| timechart span=1h count BY userName&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
    <pubDate>Mon, 20 May 2024 13:34:20 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2024-05-20T13:34:20Z</dc:date>
    <item>
      <title>dedup on Field over time span</title>
      <link>https://community.splunk.com/t5/Splunk-Search/dedup-on-Field-over-time-span/m-p/688024#M234621</link>
      <description>&lt;P&gt;we have data in Splunk for user sessions in an app and I am trying to produce a line graph to show usage every hour. the session information is added 4 times an hour so trying to remove the extra results per hour&lt;/P&gt;&lt;P&gt;below is an example for one user but there will be other user data as well&amp;nbsp;&lt;/P&gt;&lt;P&gt;userName: fred&lt;BR /&gt;sessionKey: a0b360d9-a471-45a1-9dcc-0dee39ed6ba8&lt;BR /&gt;timestamp: 2024-05-20T12:00:00Z&lt;/P&gt;&lt;P&gt;userName: fred&lt;BR /&gt;sessionKey: a0b360d9-a471-45a1-9dcc-0dee39ed6ba8&lt;BR /&gt;timestamp: 2024-05-20T12:30:00Z&lt;/P&gt;&lt;P&gt;userName: fred&lt;BR /&gt;sessionKey: a0b360d9-a471-45a1-9dcc-0dee39ed6ba8&lt;BR /&gt;timestamp: 2024-05-20T12:45:00Z&lt;/P&gt;&lt;P&gt;userName: fred&lt;BR /&gt;sessionKey: a0b360d9-a471-45a1-9dcc-0dee39ed6ba8&lt;BR /&gt;timestamp: 2024-05-20T13:00:00Z&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2024 13:27:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/dedup-on-Field-over-time-span/m-p/688024#M234621</guid>
      <dc:creator>triva79</dc:creator>
      <dc:date>2024-05-20T13:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: dedup on Field over time span</title>
      <link>https://community.splunk.com/t5/Splunk-Search/dedup-on-Field-over-time-span/m-p/688025#M234622</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/268113"&gt;@triva79&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;you could use timechart or dedup:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;your_search&amp;gt;
| timechart span=1h count BY userName&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2024 13:34:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/dedup-on-Field-over-time-span/m-p/688025#M234622</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-05-20T13:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: dedup on Field over time span</title>
      <link>https://community.splunk.com/t5/Splunk-Search/dedup-on-Field-over-time-span/m-p/688026#M234623</link>
      <description>&lt;P&gt;The session is only present 3 times in the hour, the fourth one at 13:00 is in the next hour&lt;/P&gt;&lt;P&gt;Anyway, assuming you still want to count different sessions for the same user separately, you can do the stats twice&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| bin _time span=1h
| stats count by _time, userName, sessionKey
| stats count by _time, userName&lt;/LI-CODE&gt;&lt;P&gt;Depending on what count you actually want, you could also do this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| bin _time span=1h
| stats count by _time, userName, sessionKey
| stats count by _time&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 20 May 2024 13:39:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/dedup-on-Field-over-time-span/m-p/688026#M234623</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-05-20T13:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: dedup on Field over time span</title>
      <link>https://community.splunk.com/t5/Splunk-Search/dedup-on-Field-over-time-span/m-p/688039#M234624</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/268113"&gt;@triva79&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;How about...&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;| timechart span=1h limit=50 useother=false dc(userName) as count by userName&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;or maybe...&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;| eval session=userName+":"+sessionKey
| timechart span=1h limit=50 useother=false dc(session) as count by session&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 20 May 2024 15:53:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/dedup-on-Field-over-time-span/m-p/688039#M234624</guid>
      <dc:creator>bandit</dc:creator>
      <dc:date>2024-05-20T15:53:23Z</dc:date>
    </item>
    <item>
      <title>Re: dedup on Field over time span</title>
      <link>https://community.splunk.com/t5/Splunk-Search/dedup-on-Field-over-time-span/m-p/688040#M234625</link>
      <description>&lt;P&gt;thanks so much &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; only my 2nd day using Splunk&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2024 14:52:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/dedup-on-Field-over-time-span/m-p/688040#M234625</guid>
      <dc:creator>triva79</dc:creator>
      <dc:date>2024-05-20T14:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: dedup on Field over time span</title>
      <link>https://community.splunk.com/t5/Splunk-Search/dedup-on-Field-over-time-span/m-p/688045#M234627</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/268113"&gt;@triva79&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;good for you, see next time!&lt;/P&gt;&lt;P&gt;Ciao and happy splunking&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;P.S.: Karma Points are appreciated by all the contributors &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2024 15:38:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/dedup-on-Field-over-time-span/m-p/688045#M234627</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-05-20T15:38:14Z</dc:date>
    </item>
  </channel>
</rss>

