<?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: Help with props.conf for timestamp in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Help-with-props-conf-for-timestamp/m-p/500190#M85232</link>
    <description>&lt;P&gt;Thank You &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/220485"&gt;@darrenfuller&lt;/a&gt; for your reply . I tried the props you told me but that did not work .&lt;/P&gt;

&lt;P&gt;[alt ]&lt;BR /&gt;
CHARSET=UTF-8&lt;BR /&gt;
INDEXED_EXTRACTIONS=JSON&lt;BR /&gt;
KV_MODE=JSON&lt;BR /&gt;
LINE_BREAKER=([\r\n]+)&lt;BR /&gt;
MAX_TIMESTAMP_LOOKAHEAD=25&lt;BR /&gt;
NO_BINARY_CHECK=true&lt;BR /&gt;
SHOULD_LINEMERGE=true&lt;BR /&gt;
TRUNCATE=10000&lt;BR /&gt;
category=Structured&lt;BR /&gt;
description=JavaScript Object Notation format. For more information, visit &lt;A href="http://json.org/" target="_blank"&gt;http://json.org/&lt;/A&gt;&lt;BR /&gt;
disabled=false&lt;BR /&gt;
pulldown_type=true&lt;BR /&gt;
TIME_PREFIX=(dateAdded:\s\/Date()\d+)\/}]&lt;BR /&gt;
TIME_FORMAT=%s%3N&lt;/P&gt;

&lt;P&gt;I am pasting the raw format of data how it looks like.the one in bold before collection id is what I am looking at&lt;/P&gt;

&lt;P&gt;"dateAdded":"\/Date(1576263356219)\/"},{"addedById":"5d013cd01758d3c468","appId":"5d013d418c2cf","dateAdded":"\/Date(1576263482497)\/"},{"addedById":"5d013cd013c468","appId":"5d35d43d17588644c6c25","dateAdded":"\/Date(1576263489027)\/"},{"addedById":"5d013cd084d3c468","appId":"5e5dc7827acaa","dateAdded":"\/Date(1583177463548)\/"},{"addedById":"5d013cd01d3c468","appId":"5e5d5c7827af0c","dateAdded":"&lt;STRONG&gt;\/Date(1583177467959)\/"}],&lt;/STRONG&gt;"collectionId"&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 04:42:31 GMT</pubDate>
    <dc:creator>vrmandadi</dc:creator>
    <dc:date>2020-09-30T04:42:31Z</dc:date>
    <item>
      <title>Help with props.conf for timestamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-with-props-conf-for-timestamp/m-p/500188#M85230</link>
      <description>&lt;P&gt;Hello All ,&lt;/P&gt;

&lt;P&gt;I have a json data format , which I am trying to import into splunk .I want to extract the  timestamp from the last field value a multivalue field  .For instance there is a field called appid which is a multivalue field with values 1573503539877 , 1573503539875,1573503539878,&lt;STRONG&gt;1573503539873&lt;/STRONG&gt; .I want to make the last value as the timestamp .&lt;/P&gt;

&lt;P&gt;The last timestamp for the multivalue field appid has the following format with closed flower brackets and a square bracket but the others have just a flower bracket&lt;/P&gt;

&lt;P&gt;MULTIVALUE FIELD "APPID"  -first event&lt;BR /&gt;
 apps: [ [-]&lt;BR /&gt;
     { [-]&lt;BR /&gt;
       addedById: 5d013c468&lt;BR /&gt;
       appId: 5d0d1fc13d418bdf5&lt;BR /&gt;
       dateAdded: /Date(1573503009489)/&lt;/P&gt;

&lt;P&gt;MULTIVALUE FIELD APPID-last value which needs to be extracted&lt;BR /&gt;
addedById: 398&lt;BR /&gt;
       appId:ccaaadb&lt;BR /&gt;
       dateAdded: /Date(&lt;STRONG&gt;1584128055615&lt;/STRONG&gt;)/&lt;BR /&gt;
     }&lt;BR /&gt;
   ]&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/8576iC1D0F676C3654005/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Mar 2020 19:48:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-with-props-conf-for-timestamp/m-p/500188#M85230</guid>
      <dc:creator>vrmandadi</dc:creator>
      <dc:date>2020-03-25T19:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: Help with props.conf for timestamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-with-props-conf-for-timestamp/m-p/500189#M85231</link>
      <description>&lt;P&gt;I am making a guess at how the raw json looks...   but since the raw JSON will be all on one line with no carriage returns.    try something like so in your props.conf: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_PREFIX = (dateAdded:\s\/Date\()\d+\)\/\}\]
TIME_FORMAT = %s%3N
MAX_TIMESTAMP_LOOKAHEAD = 25
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The regex is looking for a dateAdded: /Date(1234567891234) followed by the end strings of your event : }]&lt;/P&gt;

&lt;P&gt;&lt;A href="https://regex101.com/r/918sTd/1"&gt;https://regex101.com/r/918sTd/1&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Hope this helps...&lt;/P&gt;

&lt;P&gt;.//D&lt;/P&gt;</description>
      <pubDate>Wed, 25 Mar 2020 20:59:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-with-props-conf-for-timestamp/m-p/500189#M85231</guid>
      <dc:creator>darrenfuller</dc:creator>
      <dc:date>2020-03-25T20:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: Help with props.conf for timestamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-with-props-conf-for-timestamp/m-p/500190#M85232</link>
      <description>&lt;P&gt;Thank You &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/220485"&gt;@darrenfuller&lt;/a&gt; for your reply . I tried the props you told me but that did not work .&lt;/P&gt;

&lt;P&gt;[alt ]&lt;BR /&gt;
CHARSET=UTF-8&lt;BR /&gt;
INDEXED_EXTRACTIONS=JSON&lt;BR /&gt;
KV_MODE=JSON&lt;BR /&gt;
LINE_BREAKER=([\r\n]+)&lt;BR /&gt;
MAX_TIMESTAMP_LOOKAHEAD=25&lt;BR /&gt;
NO_BINARY_CHECK=true&lt;BR /&gt;
SHOULD_LINEMERGE=true&lt;BR /&gt;
TRUNCATE=10000&lt;BR /&gt;
category=Structured&lt;BR /&gt;
description=JavaScript Object Notation format. For more information, visit &lt;A href="http://json.org/" target="_blank"&gt;http://json.org/&lt;/A&gt;&lt;BR /&gt;
disabled=false&lt;BR /&gt;
pulldown_type=true&lt;BR /&gt;
TIME_PREFIX=(dateAdded:\s\/Date()\d+)\/}]&lt;BR /&gt;
TIME_FORMAT=%s%3N&lt;/P&gt;

&lt;P&gt;I am pasting the raw format of data how it looks like.the one in bold before collection id is what I am looking at&lt;/P&gt;

&lt;P&gt;"dateAdded":"\/Date(1576263356219)\/"},{"addedById":"5d013cd01758d3c468","appId":"5d013d418c2cf","dateAdded":"\/Date(1576263482497)\/"},{"addedById":"5d013cd013c468","appId":"5d35d43d17588644c6c25","dateAdded":"\/Date(1576263489027)\/"},{"addedById":"5d013cd084d3c468","appId":"5e5dc7827acaa","dateAdded":"\/Date(1583177463548)\/"},{"addedById":"5d013cd01d3c468","appId":"5e5d5c7827af0c","dateAdded":"&lt;STRONG&gt;\/Date(1583177467959)\/"}],&lt;/STRONG&gt;"collectionId"&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:42:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-with-props-conf-for-timestamp/m-p/500190#M85232</guid>
      <dc:creator>vrmandadi</dc:creator>
      <dc:date>2020-09-30T04:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: Help with props.conf for timestamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-with-props-conf-for-timestamp/m-p/500191#M85233</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;[alt ]
CHARSET=UTF-8
INDEXED_EXTRACTIONS=none
KV_MODE=JSON
LINE_BREAKER=([\r\n]+){
MAX_TIMESTAMP_LOOKAHEAD=1000
NO_BINARY_CHECK=true
SHOULD_LINEMERGE=false
TRUNCATE=0
category=Structured
description=JSON
disabled=false
pulldown_type=true
TIME_PREFIX=.*Date\(
TIME_FORMAT=%s%3N
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;EM&gt;INDEXED_EXTRACTIONS&lt;/EM&gt; OR &lt;EM&gt;KV_MODE&lt;/EM&gt; should be set only one.&lt;BR /&gt;
If &lt;EM&gt;LINE_BREAKER&lt;/EM&gt; is good, &lt;EM&gt;TIME_PREFIX&lt;/EM&gt; 's REGEX match greedy.&lt;BR /&gt;
so, latest &lt;CODE&gt;Date&lt;/CODE&gt; match  &lt;CODE&gt;_time&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:42:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-with-props-conf-for-timestamp/m-p/500191#M85233</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-09-30T04:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: Help with props.conf for timestamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-with-props-conf-for-timestamp/m-p/500192#M85234</link>
      <description>&lt;P&gt;This worked.&lt;/P&gt;

&lt;P&gt;[ alt ]&lt;BR /&gt;
CHARSET=UTF-8&lt;BR /&gt;
INDEXED_EXTRACTIONS=JSON&lt;BR /&gt;
KV_MODE=JSON&lt;BR /&gt;
LINE_BREAKER=([\r\n]+)&lt;BR /&gt;
MAX_TIMESTAMP_LOOKAHEAD=60&lt;BR /&gt;
NO_BINARY_CHECK=true&lt;BR /&gt;
SHOULD_LINEMERGE=true&lt;BR /&gt;
TRUNCATE=10000&lt;BR /&gt;
category=Structured&lt;BR /&gt;
description=JavaScript Object Notation format. For more information, visit &lt;A href="http://json.org/" target="_blank"&gt;http://json.org/&lt;/A&gt;&lt;BR /&gt;
disabled=false&lt;BR /&gt;
pulldown_type=true&lt;BR /&gt;
TIME_PREFIX=(Date()\d+)\\/\"}]&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:42:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-with-props-conf-for-timestamp/m-p/500192#M85234</guid>
      <dc:creator>vrmandadi</dc:creator>
      <dc:date>2020-09-30T04:42:41Z</dc:date>
    </item>
  </channel>
</rss>

