title: Convert Number date to a String Date Field in Fluentd For Storing into Elasticsearch
body: <p>I'm new to fluentd and using it to ingest data to elasticsearch. I have a field called request_time which has value : 110820120501 as a number of the format [ddmmyyHHMMSS]. How can I convert this as a date field.</p>
  <p>This is what I've written but it doesn't work. Any help is appreciated.</p>
  <p>Example request_time value : 100820015642</p>
  <pre><code>    &lt;filter&gt;
          @type record_transformer
          enable_ruby true
          &lt;record&gt;
          request_time ${ require 'date'; DateTime.strptime('request_time', '%d%m%y%H%M%S')}
          &lt;/record&gt;
      &lt;/filter&gt;
  </code></pre>
  <p>I have tried the below as well:</p>
  <pre><code>    &lt;filter&gt;
          @type record_transformer
          enable_ruby true
          &lt;record&gt;
              time ${require 'date'; DateTime.parse('request_time').strftime('%d%m%y%H%M%S')}
          &lt;/record&gt;
      &lt;/filter&gt;
  </code></pre>
  <p>How can I store request_time as a date field coverted to a value as eg. &quot;request_time&quot;: &quot;2020-08-11T11:24:23.000+0100&quot; ?</p>