<?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: Can anyone regex the time out in my search? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Can-anyone-regex-the-time-out-in-my-search/m-p/159739#M45094</link>
    <description>&lt;P&gt;Timestamp should be working from index time, not search time. So currently your event time doesnt match the actual event time?&lt;/P&gt;

&lt;P&gt;You should fix this, otherwise Splunk looses it real value.&lt;/P&gt;

&lt;P&gt;Read this : &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.2/Data/HowSplunkextractstimestamps"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.2/Data/HowSplunkextractstimestamps&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;You shouldnt have to extract date or timestamps at search time, these should be done at index time and available in search. This negates the whole purpose of Splunk and time based event monitoring.&lt;/P&gt;

&lt;P&gt;Whats the query error?&lt;/P&gt;</description>
    <pubDate>Wed, 29 Apr 2015 07:30:20 GMT</pubDate>
    <dc:creator>esix_splunk</dc:creator>
    <dc:date>2015-04-29T07:30:20Z</dc:date>
    <item>
      <title>Can anyone regex the time out in my search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-anyone-regex-the-time-out-in-my-search/m-p/159726#M45081</link>
      <description>&lt;P&gt;In the search below, can anyone regex the time out instead of bucket span?&lt;/P&gt;

&lt;P&gt;I need to figure out a way to filter time and data per user. (Need to use regex instead of bucket)&lt;/P&gt;

&lt;P&gt;The expression which is there in the search is extracts the &lt;CODE&gt;USERID&lt;/CODE&gt; field. ( &lt;CODE&gt;| rex "(?i) Realm][][][][][][(?P[^]]+"&lt;/CODE&gt; )&lt;/P&gt;

&lt;P&gt;Just want regex the time out instead of bucket span&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=casm_prod sourcetype=smtrace "Center realm" | rex "(?i) Realm][][][][][][(?P[^]]+" |bucket span=5m _time|stats values(user) as USER count(user) as eventcount by _time |fields USER eventcount
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 28 Apr 2015 15:41:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-anyone-regex-the-time-out-in-my-search/m-p/159726#M45081</guid>
      <dc:creator>moiezuddin</dc:creator>
      <dc:date>2015-04-28T15:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: Can anyone regex the time out in my search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-anyone-regex-the-time-out-in-my-search/m-p/159727#M45082</link>
      <description>&lt;P&gt;We need to know what your data looks like in order to extract your time.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2015 06:33:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-anyone-regex-the-time-out-in-my-search/m-p/159727#M45082</guid>
      <dc:creator>esix_splunk</dc:creator>
      <dc:date>2015-04-29T06:33:01Z</dc:date>
    </item>
    <item>
      <title>Re: Can anyone regex the time out in my search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-anyone-regex-the-time-out-in-my-search/m-p/159728#M45083</link>
      <description>&lt;P&gt;SAMPLE DATA FROM THE ABOVE QUERY&lt;/P&gt;

&lt;P&gt;4/28/15 &lt;BR /&gt;
2:05:00.000 PM&lt;BR /&gt;&lt;BR /&gt;
[04/28/2015][11:06:09.634][347216816][s5324172/r23][Center realm][][][][][][206416426][][][][][][centerusushwswp222lprd][** Status: Authorized. ][]&lt;BR /&gt;
index = casm_prod&lt;BR /&gt;
4/28/15 &lt;BR /&gt;
2:05:00.000 PM&lt;BR /&gt;&lt;BR /&gt;
[04/28/2015][11:06:09.634][347216816][s5324172/r23][Center realm][][][][][][206416426][][][][][][centerusushwswp222lprd][Send response attribute 147, data size is 0][]&lt;BR /&gt;
index = casm_prod&lt;BR /&gt;
4/28/15 &lt;BR /&gt;
2:05:00.000 PM&lt;BR /&gt;&lt;BR /&gt;
[04/28/2015][11:06:09.634][347216816][s5324172/r23][Center realm][][][][][][206416426][][][][][][centerusushwswp222lprd][Send response attribute 146, data size is 0][]&lt;BR /&gt;
index = casm_prod&lt;BR /&gt;
4/28/15 &lt;BR /&gt;
2:05:00.000 PM&lt;BR /&gt;&lt;BR /&gt;
[04/28/2015][11:06:09.634][347216816][s5324172/r23][Center realm][][][][][][206416426][][][][][][centerusushwswp222lprd][Send response attribute 224, data size is 16][sso_id=206416426]&lt;BR /&gt;
index = casm_prod sso_id = 206416426&lt;BR /&gt;
4/28/15 &lt;BR /&gt;
2:05:00.000 PM&lt;BR /&gt;&lt;BR /&gt;
[04/28/2015][11:06:09.634][347216816][s5324172/r23][Center realm][][][][][][206416426][][][][][][centerusushwswp222lprd][Send response attribute 224, data size is 16][smuser=206416426]&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 19:39:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-anyone-regex-the-time-out-in-my-search/m-p/159728#M45083</guid>
      <dc:creator>moiezuddin</dc:creator>
      <dc:date>2020-09-28T19:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: Can anyone regex the time out in my search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-anyone-regex-the-time-out-in-my-search/m-p/159729#M45084</link>
      <description>&lt;P&gt;This regex will give you the date and time in different fields:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;rex field=_raw "^\[(?&amp;lt;date&amp;gt;[^\]]+)\]\[(?&amp;lt;time&amp;gt;[^\]]+)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Edit: the naming did not work... please remove the space between the "&amp;lt;" and "date" and between "&amp;lt;" and "time"&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2015 06:55:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-anyone-regex-the-time-out-in-my-search/m-p/159729#M45084</guid>
      <dc:creator>aholzel</dc:creator>
      <dc:date>2015-04-29T06:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: Can anyone regex the time out in my search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-anyone-regex-the-time-out-in-my-search/m-p/159730#M45085</link>
      <description>&lt;P&gt;I need to figure out only userid which shows once per minute with regex,&lt;BR /&gt;
Can you please provide me the complete query , i am unable to understand where to add in existing query.&lt;BR /&gt;
Awaiting for your response&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2015 06:58:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-anyone-regex-the-time-out-in-my-search/m-p/159730#M45085</guid>
      <dc:creator>moiezuddin</dc:creator>
      <dc:date>2015-04-29T06:58:26Z</dc:date>
    </item>
    <item>
      <title>Re: Can anyone regex the time out in my search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-anyone-regex-the-time-out-in-my-search/m-p/159731#M45086</link>
      <description>&lt;P&gt;Expanding on that a bit, Im not sure if the start of the event is actually the "["...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex field=_raw "\[(?P&amp;lt;date&amp;gt;\d{1,2}\/\d{1,2}\/\d{4})\]\[(?P&amp;lt;time&amp;gt;\d{1,2}:\d{1,2}:\d{1,2}.\d{1,3})\]" | table date time
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 29 Apr 2015 06:59:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-anyone-regex-the-time-out-in-my-search/m-p/159731#M45086</guid>
      <dc:creator>esix_splunk</dc:creator>
      <dc:date>2015-04-29T06:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: Can anyone regex the time out in my search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-anyone-regex-the-time-out-in-my-search/m-p/159732#M45087</link>
      <description>&lt;P&gt;I don't really understand what you mean. Are you looking for a specific username that only shows once a minute? or do you get multiple events from users and only what to work with one event per user per minute?&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2015 07:01:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-anyone-regex-the-time-out-in-my-search/m-p/159732#M45087</guid>
      <dc:creator>aholzel</dc:creator>
      <dc:date>2015-04-29T07:01:04Z</dc:date>
    </item>
    <item>
      <title>Re: Can anyone regex the time out in my search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-anyone-regex-the-time-out-in-my-search/m-p/159733#M45088</link>
      <description>&lt;P&gt;Now i can  able to be found many times userid's each minute.&lt;BR /&gt;&lt;BR /&gt;
Can we fiter this so it only shows once per minute. &lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2015 07:04:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-anyone-regex-the-time-out-in-my-search/m-p/159733#M45088</guid>
      <dc:creator>moiezuddin</dc:creator>
      <dc:date>2015-04-29T07:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: Can anyone regex the time out in my search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-anyone-regex-the-time-out-in-my-search/m-p/159734#M45089</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;... | rex field=_raw "\[(?P&amp;lt;date&amp;gt;\d{1,2}\/\d{1,2}\/\d{4})\]\[(?P&amp;lt;time&amp;gt;\d{1,2}:\d{1,2}:\d{1,2}.\d{1,3})\]" | bin span=1m _time | stats count by USER
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But you need to extract your 'USER' if it isnt already.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2015 07:06:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-anyone-regex-the-time-out-in-my-search/m-p/159734#M45089</guid>
      <dc:creator>esix_splunk</dc:creator>
      <dc:date>2015-04-29T07:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: Can anyone regex the time out in my search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-anyone-regex-the-time-out-in-my-search/m-p/159735#M45090</link>
      <description>&lt;P&gt;i am getting multiple events form one usersid&lt;BR /&gt;
I need one event per user per minute&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2015 07:10:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-anyone-regex-the-time-out-in-my-search/m-p/159735#M45090</guid>
      <dc:creator>moiezuddin</dc:creator>
      <dc:date>2015-04-29T07:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: Can anyone regex the time out in my search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-anyone-regex-the-time-out-in-my-search/m-p/159736#M45091</link>
      <description>&lt;P&gt;Yes your correct i extracted it , here is the query&lt;/P&gt;

&lt;P&gt;index=casm_prod sourcetype=smtrace "Center realm"| rex "(?i) Realm\]\[\]\[\]\[\]\[\]\[\]\[(?P[^\]]+)"| rex field=_raw "[(?P\d{1,2}\/\d{1,2}\/\d{4})][(?P\d{1,2}:\d{1,2}:\d{1,2}.\d{1,3})]" | table date time user&lt;/P&gt;

&lt;P&gt;Iam getting multiple events form one usersid&lt;BR /&gt;
Without  using   bin span&lt;BR /&gt;&lt;BR /&gt;
can we get  event per user per minute&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 19:42:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-anyone-regex-the-time-out-in-my-search/m-p/159736#M45091</guid>
      <dc:creator>moiezuddin</dc:creator>
      <dc:date>2020-09-28T19:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: Can anyone regex the time out in my search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-anyone-regex-the-time-out-in-my-search/m-p/159737#M45092</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;index=casm_prod sourcetype=smtrace "Center Realm" | rex field=_raw "\[(?P&amp;lt;date&amp;gt;\d{1,2}\/\d{1,2}\/\d{4})\]\[(?P&amp;lt;time&amp;gt;\d{1,2}:\d{1,2}:\d{1,2}.\d{1,3})\].*Center realm\](\[\]+){5}\[(?&amp;lt;user_id&amp;gt;[^\]]+)\]" | bin span=1m time | stats count by user_id
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you want to aggregate by time, you have to use stats or timechart for this. And since you say you want to aggregate over one minute, you have to user the bin span=1m. You can remove that, but it will group by all time in the events.&lt;/P&gt;

&lt;P&gt;I also have to question if your time stamps are working correctly for these events...&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2015 07:20:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-anyone-regex-the-time-out-in-my-search/m-p/159737#M45092</guid>
      <dc:creator>esix_splunk</dc:creator>
      <dc:date>2015-04-29T07:20:36Z</dc:date>
    </item>
    <item>
      <title>Re: Can anyone regex the time out in my search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-anyone-regex-the-time-out-in-my-search/m-p/159738#M45093</link>
      <description>&lt;P&gt;Error in the query&lt;/P&gt;

&lt;P&gt;Time stamps is working correctly for your  1st query which you given''&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2015 07:25:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-anyone-regex-the-time-out-in-my-search/m-p/159738#M45093</guid>
      <dc:creator>moiezuddin</dc:creator>
      <dc:date>2015-04-29T07:25:04Z</dc:date>
    </item>
    <item>
      <title>Re: Can anyone regex the time out in my search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-anyone-regex-the-time-out-in-my-search/m-p/159739#M45094</link>
      <description>&lt;P&gt;Timestamp should be working from index time, not search time. So currently your event time doesnt match the actual event time?&lt;/P&gt;

&lt;P&gt;You should fix this, otherwise Splunk looses it real value.&lt;/P&gt;

&lt;P&gt;Read this : &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.2/Data/HowSplunkextractstimestamps"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.2/Data/HowSplunkextractstimestamps&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;You shouldnt have to extract date or timestamps at search time, these should be done at index time and available in search. This negates the whole purpose of Splunk and time based event monitoring.&lt;/P&gt;

&lt;P&gt;Whats the query error?&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2015 07:30:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-anyone-regex-the-time-out-in-my-search/m-p/159739#M45094</guid>
      <dc:creator>esix_splunk</dc:creator>
      <dc:date>2015-04-29T07:30:20Z</dc:date>
    </item>
    <item>
      <title>Re: Can anyone regex the time out in my search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-anyone-regex-the-time-out-in-my-search/m-p/159740#M45095</link>
      <description>&lt;P&gt;Thankyou very much for your quick response ..&lt;/P&gt;

&lt;P&gt;its working fine now.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2015 07:37:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-anyone-regex-the-time-out-in-my-search/m-p/159740#M45095</guid>
      <dc:creator>moiezuddin</dc:creator>
      <dc:date>2015-04-29T07:37:20Z</dc:date>
    </item>
  </channel>
</rss>

