<?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: How to configure Splunk to use a timestamp field in my sample log as _time? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-configure-Splunk-to-use-a-timestamp-field-in-my-sample/m-p/323676#M96630</link>
    <description>&lt;P&gt;put this in props.conf &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_PREFIX =  timestamp_mrt\"\:\s\"
TIME_FORMAT = %Y-%d-%mT%H:%M:%S.%3QZ
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 27 Feb 2018 05:54:43 GMT</pubDate>
    <dc:creator>mayurr98</dc:creator>
    <dc:date>2018-02-27T05:54:43Z</dc:date>
    <item>
      <title>How to configure Splunk to use a timestamp field in my sample log as _time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-configure-Splunk-to-use-a-timestamp-field-in-my-sample/m-p/323674#M96628</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I'm new in Splunk, hope you can guide step by step please.&lt;/P&gt;

&lt;P&gt;How do I map or link a timestamp field (eg. timestamp_mrt) into _time so I can search on it?&lt;BR /&gt;
Right now my timestamp is none.&lt;/P&gt;

&lt;P&gt;Here the log that I loaded into Splunk&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;{
    "received_bytes": "28942",
    "srcip": "***************",
    "src_port": "42012",
    "dstport": "443",
    "action": "allow",
    "type": "checkpoint_fw",
    "dst_port": "443",
    "log_sequence_num": "0",
    "LastUpdateTime": "1512314958",
    "host": "**************",
    "action": "allow",
    "dstip": "**************",
    "__policy_id_tag": "product=VPN-1 &amp;amp; FireWall-1[db_tag={10F51296-63EA-884A-BF05-579D4499EA21}",
    "app_id": "60519733",
    "protocol": "tcp",
    "app_rule_name": " ",
    "timestamp_mrt": "2017-12-03T15:30:36.208Z",
    "is_first_for_luuid": "0",
    "reporting_host": "****************",
    "Suppressed logs": "19",
    "browse_time": "0:00:00",
    "host": "***************",
    "dst_ip": "**************",
    "port": 51354,
    "i/f_name": "eth1-01",
    "proto": "tcp",
    "app_risk": "1",
    "src_ip": "*****************",
    "app_rule_id": "{B9494762-1D04-444B-A1F5-373B2DEC6CEE}",
    "app_category": "Network Protocols",
    "log_version": "1",
    "reportingHost": "*****************",
    "appi_name": "HTTP/2 over TLS",
    "rule": " ",
    "app_sig_id": "60519733:10",
    "cp_fwProductName": "Application Control",
    "typeNo": "13",
    "sent_bytes": "24332",
    "cp_date": "03Dec2017 14:50:17",
    "app_properties": "Very Low Risk, Network Protocols, Communication Standard",
    "log_type": "log",
    "has_accounting": "0",
    "cp_hostip": "**************",
    "@version": "1",
    "logId": "-1",
    "matched_category": "Network Protocols",
    "proxy_src_ip": "172.26.2.10",
    "product": "Application Control",
    "i/f_dir": "outbound",
    "origin_sic_name": "CN=fw1,O=fw..vtvb5n",
    "@timestamp": "2017-12-03T15:30:36.208Z",
    "bytes": "53274",
    "srcport": "42012",
    "app_desc": "HTTP/2 provides an optimized transport for HTTP semantics. HTTP/2 supports all of the core features of HTTP/1.1, but aims to be more efficient in several ways. HTTP/2 over TLS allows HTTP/2 connections over a secured TLS connection. Supported from: R75.40."
  }
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;thank you!!&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2018 01:48:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-configure-Splunk-to-use-a-timestamp-field-in-my-sample/m-p/323674#M96628</guid>
      <dc:creator>rid1</dc:creator>
      <dc:date>2018-02-27T01:48:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Splunk to use a timestamp field in my sample log as _time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-configure-Splunk-to-use-a-timestamp-field-in-my-sample/m-p/323675#M96629</link>
      <description>&lt;P&gt;Hey rid1,&lt;/P&gt;

&lt;P&gt;You can create a custom sourcetype and in props.conf you can add &lt;BR /&gt;
TIME_PREFIX = \"timestamp_mrt\":&lt;BR /&gt;
You also need to add TIME_FORMAT in your props.&lt;BR /&gt;
Refer this link below:&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.0.2/Admin/Propsconf" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/7.0.2/Admin/Propsconf&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/7.0.2/Data/Createsourcetypes" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/7.0.2/Data/Createsourcetypes&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Hope this helps!!&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 18:27:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-configure-Splunk-to-use-a-timestamp-field-in-my-sample/m-p/323675#M96629</guid>
      <dc:creator>deepashri_123</dc:creator>
      <dc:date>2020-09-29T18:27:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Splunk to use a timestamp field in my sample log as _time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-configure-Splunk-to-use-a-timestamp-field-in-my-sample/m-p/323676#M96630</link>
      <description>&lt;P&gt;put this in props.conf &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_PREFIX =  timestamp_mrt\"\:\s\"
TIME_FORMAT = %Y-%d-%mT%H:%M:%S.%3QZ
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 27 Feb 2018 05:54:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-configure-Splunk-to-use-a-timestamp-field-in-my-sample/m-p/323676#M96630</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2018-02-27T05:54:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Splunk to use a timestamp field in my sample log as _time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-configure-Splunk-to-use-a-timestamp-field-in-my-sample/m-p/323677#M96631</link>
      <description>&lt;P&gt;new sourcetype created, and below were added, service restarted.&lt;/P&gt;

&lt;P&gt;TIME_PREFIX = \"timestamp_mrt\":&lt;BR /&gt;
TIME_FORMAT = %m/%d/%Y&lt;/P&gt;

&lt;P&gt;I still can't query based on the time which is 3rd december 2017.&lt;/P&gt;

&lt;P&gt;here is some result after prefix were added:&lt;/P&gt;

&lt;P&gt;@timestamp&lt;BR /&gt;
2017-12-03T15:30:36.208Z    &lt;/P&gt;

&lt;P&gt;timestamp&lt;BR /&gt;
none    &lt;/P&gt;

&lt;P&gt;timestamp_mrt&lt;BR /&gt;
2017-12-03T15:30:36.208Z&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 18:16:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-configure-Splunk-to-use-a-timestamp-field-in-my-sample/m-p/323677#M96631</guid>
      <dc:creator>rid1</dc:creator>
      <dc:date>2020-09-29T18:16:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Splunk to use a timestamp field in my sample log as _time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-configure-Splunk-to-use-a-timestamp-field-in-my-sample/m-p/323678#M96632</link>
      <description>&lt;P&gt;I tried both method but I still can't search for the log with&lt;BR /&gt;
- search is *&lt;BR /&gt;
-condition  between 2 dec 2017 to 4th dec 2017&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2018 06:00:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-configure-Splunk-to-use-a-timestamp-field-in-my-sample/m-p/323678#M96632</guid>
      <dc:creator>rid1</dc:creator>
      <dc:date>2018-02-27T06:00:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Splunk to use a timestamp field in my sample log as _time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-configure-Splunk-to-use-a-timestamp-field-in-my-sample/m-p/323679#M96633</link>
      <description>&lt;P&gt;still giving my "timestamp = none"&lt;BR /&gt;
thus I tried to find the log with condition of search&lt;BR /&gt;
2nd dec 2017 to 4th dec 2017, still give me nothing.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2018 06:02:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-configure-Splunk-to-use-a-timestamp-field-in-my-sample/m-p/323679#M96633</guid>
      <dc:creator>rid1</dc:creator>
      <dc:date>2018-02-27T06:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Splunk to use a timestamp field in my sample log as _time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-configure-Splunk-to-use-a-timestamp-field-in-my-sample/m-p/323680#M96634</link>
      <description>&lt;P&gt;Are you able to see &lt;CODE&gt;_time&lt;/CODE&gt; and &lt;CODE&gt;timestamp_mrt&lt;/CODE&gt; same in the raw logs after doing above configuration.&lt;/P&gt;

&lt;P&gt;For your info, you need to restart Splunk server after doing this configuration.&lt;BR /&gt;
Also, this configuration will apply to latest events only i.e. from the time you restart the Splunk server it will not apply on historical events so check real-time latest events.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2018 06:06:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-configure-Splunk-to-use-a-timestamp-field-in-my-sample/m-p/323680#M96634</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2018-02-27T06:06:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Splunk to use a timestamp field in my sample log as _time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-configure-Splunk-to-use-a-timestamp-field-in-my-sample/m-p/323681#M96635</link>
      <description>&lt;P&gt;hey rid1,&lt;/P&gt;

&lt;P&gt;I think you will have to re-index your data to see the config changes as the changes wont be implemented on data that is already indexed. It will be added only to the new data that is indexed.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2018 06:07:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-configure-Splunk-to-use-a-timestamp-field-in-my-sample/m-p/323681#M96635</guid>
      <dc:creator>deepashri_123</dc:creator>
      <dc:date>2018-02-27T06:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Splunk to use a timestamp field in my sample log as _time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-configure-Splunk-to-use-a-timestamp-field-in-my-sample/m-p/323682#M96636</link>
      <description>&lt;P&gt;perfect! as @deepashri_123 and you recommended to apply to new events.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2018 07:51:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-configure-Splunk-to-use-a-timestamp-field-in-my-sample/m-p/323682#M96636</guid>
      <dc:creator>rid1</dc:creator>
      <dc:date>2018-02-27T07:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Splunk to use a timestamp field in my sample log as _time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-configure-Splunk-to-use-a-timestamp-field-in-my-sample/m-p/323683#M96637</link>
      <description>&lt;P&gt;Thank you guys&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2018 07:51:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-configure-Splunk-to-use-a-timestamp-field-in-my-sample/m-p/323683#M96637</guid>
      <dc:creator>rid1</dc:creator>
      <dc:date>2018-02-27T07:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Splunk to use a timestamp field in my sample log as _time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-configure-Splunk-to-use-a-timestamp-field-in-my-sample/m-p/323684#M96638</link>
      <description>&lt;P&gt;&lt;CODE&gt;TIME_PREFIX = \"timestamp_mrt\"\:&lt;/CODE&gt; this won't work as it should be &lt;CODE&gt;TIME_PREFIX = \"timestamp_mrt\"\:\s\"&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2018 13:46:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-configure-Splunk-to-use-a-timestamp-field-in-my-sample/m-p/323684#M96638</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2018-02-27T13:46:49Z</dc:date>
    </item>
  </channel>
</rss>

