<?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 How to assign _time value to another field which is already exist in the data with value? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-assign-time-value-to-another-field-which-is-already-exist/m-p/347066#M63747</link>
    <description>&lt;P&gt;I used below setting in props foe below sample data. But didn't help. Is that possible and how?&lt;/P&gt;

&lt;P&gt;1.SEDCMD-Validated_time=sed "s/\"validated_time\":\"\d{4}-\d{2}-\d{2}\s+\d{2}:\d{2}:\d{2}\",/\"validated_time\":\"_time\"/g" &lt;BR /&gt;
2.SEDCMD-Validated_time=sed "s/\"validated_time\":\"\d{4}-\d{2}-\d{2}\s+\d{2}:\d{2}:\d{2}\",/\"validated_time\":\"$_time\"/g" &lt;BR /&gt;
3.SEDCMD-Validated_time=sed "s/\"validated_time\":\"\d{4}-\d{2}-\d{2}\s+\d{2}:\d{2}:\d{2}\",/\"validated_time\":\"$_time$\"/g" &lt;/P&gt;

&lt;P&gt;exam_date:   2018-01-19 &lt;BR /&gt;
     details:   {   [-] &lt;BR /&gt;
     grade:  NEUTRAL&lt;BR /&gt;&lt;BR /&gt;
     occurrences:   {   [-] &lt;BR /&gt;
     "validated_time":" 2018-01-19 16:51:28"&lt;BR /&gt;
     }&lt;BR /&gt;
     }&lt;/P&gt;

&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 17:54:20 GMT</pubDate>
    <dc:creator>Madhan45</dc:creator>
    <dc:date>2020-09-29T17:54:20Z</dc:date>
    <item>
      <title>How to assign _time value to another field which is already exist in the data with value?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-assign-time-value-to-another-field-which-is-already-exist/m-p/347066#M63747</link>
      <description>&lt;P&gt;I used below setting in props foe below sample data. But didn't help. Is that possible and how?&lt;/P&gt;

&lt;P&gt;1.SEDCMD-Validated_time=sed "s/\"validated_time\":\"\d{4}-\d{2}-\d{2}\s+\d{2}:\d{2}:\d{2}\",/\"validated_time\":\"_time\"/g" &lt;BR /&gt;
2.SEDCMD-Validated_time=sed "s/\"validated_time\":\"\d{4}-\d{2}-\d{2}\s+\d{2}:\d{2}:\d{2}\",/\"validated_time\":\"$_time\"/g" &lt;BR /&gt;
3.SEDCMD-Validated_time=sed "s/\"validated_time\":\"\d{4}-\d{2}-\d{2}\s+\d{2}:\d{2}:\d{2}\",/\"validated_time\":\"$_time$\"/g" &lt;/P&gt;

&lt;P&gt;exam_date:   2018-01-19 &lt;BR /&gt;
     details:   {   [-] &lt;BR /&gt;
     grade:  NEUTRAL&lt;BR /&gt;&lt;BR /&gt;
     occurrences:   {   [-] &lt;BR /&gt;
     "validated_time":" 2018-01-19 16:51:28"&lt;BR /&gt;
     }&lt;BR /&gt;
     }&lt;/P&gt;

&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 17:54:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-assign-time-value-to-another-field-which-is-already-exist/m-p/347066#M63747</guid>
      <dc:creator>Madhan45</dc:creator>
      <dc:date>2020-09-29T17:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to assign _time value to another field which is already exist in the data with value?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-assign-time-value-to-another-field-which-is-already-exist/m-p/347067#M63748</link>
      <description>&lt;P&gt;I don't think SED commands can reference fields to build the replacement string.&lt;/P&gt;

&lt;P&gt;What is your goal with this? Replacing a timestamp in the raw event with the content of _time? What is _time populated from and why would you want to override the raw event contents like this?&lt;/P&gt;</description>
      <pubDate>Tue, 06 Feb 2018 14:14:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-assign-time-value-to-another-field-which-is-already-exist/m-p/347067#M63748</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2018-02-06T14:14:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to assign _time value to another field which is already exist in the data with value?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-assign-time-value-to-another-field-which-is-already-exist/m-p/347068#M63749</link>
      <description>&lt;P&gt;|eval var=_time&lt;/P&gt;</description>
      <pubDate>Fri, 09 Mar 2018 11:31:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-assign-time-value-to-another-field-which-is-already-exist/m-p/347068#M63749</guid>
      <dc:creator>valiquet</dc:creator>
      <dc:date>2018-03-09T11:31:16Z</dc:date>
    </item>
  </channel>
</rss>

