<?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>question How to convert date to epoch time in HCP Grok parser in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-convert-date-to-epoch-time-in-HCP-Grok-parser/m-p/202948#M78675</link>
    <description>&lt;P&gt;Hi all, &lt;/P&gt;&lt;P&gt;I'm trying to add new telemetry of http-access log which have date format to HCP, but for the sensor to work i need to specify the timestampField on the sensor's JSON RAW which only recognize epoch format. &lt;/P&gt;&lt;P&gt;How can i convert the date format of log ( ex. 20/May/2017:12:19:39 +0700) to epoch format with grok parsher? &lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Thu, 24 May 2018 11:10:47 GMT</pubDate>
    <dc:creator>anggriawanrezab</dc:creator>
    <dc:date>2018-05-24T11:10:47Z</dc:date>
    <item>
      <title>How to convert date to epoch time in HCP Grok parser</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-convert-date-to-epoch-time-in-HCP-Grok-parser/m-p/202948#M78675</link>
      <description>&lt;P&gt;Hi all, &lt;/P&gt;&lt;P&gt;I'm trying to add new telemetry of http-access log which have date format to HCP, but for the sensor to work i need to specify the timestampField on the sensor's JSON RAW which only recognize epoch format. &lt;/P&gt;&lt;P&gt;How can i convert the date format of log ( ex. 20/May/2017:12:19:39 +0700) to epoch format with grok parsher? &lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 24 May 2018 11:10:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-convert-date-to-epoch-time-in-HCP-Grok-parser/m-p/202948#M78675</guid>
      <dc:creator>anggriawanrezab</dc:creator>
      <dc:date>2018-05-24T11:10:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert date to epoch time in HCP Grok parser</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-convert-date-to-epoch-time-in-HCP-Grok-parser/m-p/202949#M78676</link>
      <description>&lt;P&gt;Problem solved, i follow this &lt;A href="https://metron.apache.org/current-book/metron-platform/metron-parsers/index.html"&gt;link&lt;/A&gt;, and add this to the JSON Raw after "patternLabel":&lt;/P&gt;&lt;PRE&gt;"timestampField": "timestamp",
		"timeFields": ["timestamp"],
		"dateFormat": "dd/MMM/yyyy:HH:mm:ss Z"&lt;/PRE&gt;</description>
      <pubDate>Mon, 28 May 2018 11:42:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-convert-date-to-epoch-time-in-HCP-Grok-parser/m-p/202949#M78676</guid>
      <dc:creator>anggriawanrezab</dc:creator>
      <dc:date>2018-05-28T11:42:18Z</dc:date>
    </item>
  </channel>
</rss>

