<?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 needed with building props.conf in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-build-props-conf/m-p/641241#M109378</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/224632"&gt;@Roy_9&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;it's really strange: because timestamp extraction doesn't round, it reads the time and assign it to the timestamp; then, if you used %3N, it should take the milliseconds.&lt;/P&gt;&lt;P&gt;Could you share your props.conf?&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
    <pubDate>Tue, 25 Apr 2023 09:05:50 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2023-04-25T09:05:50Z</dc:date>
    <item>
      <title>How to build props.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-build-props-conf/m-p/638748#M109076</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I m trying to build the props.conf for the below log but when i am getting "failed to parse timestamp" and "defaulting to file modtime" error.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[test]
TIME_PREFIX = \["BS":
TIME_FORMAT = %Y-%m-%d %H-%M-%S.%3N
LINE_BREAKER = \}
SHOULD_LINEMERGE = true
TRUNCATE = 100000&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&lt;BR /&gt;below is the log sample&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;["BS":"2023-04-04 20-10-45.013", MessageID:"test-7657-99", UID="xy123-bc22"]
 {
 xyz
 }
["BS":"2023-04-04 20-10-46.013", MessageID:"test-7687-99", UID="xy123-bc22"]
 {
 abc
 }&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Please help me with it&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Apr 2023 16:13:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-build-props-conf/m-p/638748#M109076</guid>
      <dc:creator>Roy_9</dc:creator>
      <dc:date>2023-04-10T16:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed with building props.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-build-props-conf/m-p/638750#M109078</link>
      <description>&lt;P&gt;try this&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[test]
TIME_PREFIX = \["BS":"
TIME_FORMAT = %Y-%m-%d %H-%M-%S.%3N
LINE_BREAKER = \}([\n\r]+)\[
SHOULD_LINEMERGE = false
TRUNCATE = 100000&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Apr 2023 07:08:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-build-props-conf/m-p/638750#M109078</guid>
      <dc:creator>yeahnah</dc:creator>
      <dc:date>2023-04-05T07:08:03Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed with building props.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-build-props-conf/m-p/638764#M109081</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/224632"&gt;@Roy_9&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;this seems to be a json format, please try with INDEXD_EXTRACTIONS, something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[test]
TIME_PREFIX = \[\"BS\":
TIME_FORMAT = %Y-%m-%d %H-%M-%S.%3N
SHOULD_LINEMERGE = true
INDEXED_EXTRACTIONS = json&lt;/LI-CODE&gt;&lt;P&gt;in addition the regex for TIME_PREFIX is wrong because also " is a special char to escape.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 05 Apr 2023 06:35:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-build-props-conf/m-p/638764#M109081</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-04-05T06:35:49Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed with building props.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-build-props-conf/m-p/638772#M109082</link>
      <description>&lt;P&gt;The TIME_PREFIX handles regular expressions so the double quote should not need escaping.&amp;nbsp; Having said that there is no harm in escaping the double quote.&lt;BR /&gt;&lt;BR /&gt;Also, it does not look like standard JSON format to me so I doubt Splunk would handle it, as it would fail to parse it as JSON.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Apr 2023 07:13:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-build-props-conf/m-p/638772#M109082</guid>
      <dc:creator>yeahnah</dc:creator>
      <dc:date>2023-04-05T07:13:45Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed with building props.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-build-props-conf/m-p/639126#M109133</link>
      <description>&lt;P&gt;Your LINE_BREAKER is invalid and SHOULD_LINEMERGE is wrong.&amp;nbsp; Also, be sure that you are deploying to the first full-instance of Splunk that handles the events (i.e. are you using HF?) Are you sure that the "sourcetype" value is "rest"?&amp;nbsp; If so:&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[test]&lt;BR /&gt;TIME_PREFIX = \["BS":&lt;BR /&gt;TIME_FORMAT = %Y-%m-%d %H-%M-%S.%3N&lt;BR /&gt;LINE_BREAKER =&amp;nbsp;}([\r\n\s]+)\["BS":&lt;BR /&gt;SHOULD_LINEMERGE = false&lt;BR /&gt;TRUNCATE = 100000&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2023 00:52:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-build-props-conf/m-p/639126#M109133</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2023-04-07T00:52:06Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed with building props.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-build-props-conf/m-p/639235#M109148</link>
      <description>&lt;P&gt;I am just keeping the sourcetype to test for testing purposes on my stand alone test server, I have applied the below props and i am still getting the error:&lt;BR /&gt;&lt;BR /&gt;couldnot use strptime to parse timestamp from &lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;2023-04-07&lt;/SPAN&gt; &lt;SPAN class=""&gt;11-37-39.354&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;Failed to parse timestamp, defaulting to file modtime.&lt;BR /&gt;&lt;BR /&gt;these logs are already being indexed and sent to splunk cloud, we have an on prem HF in place.&lt;BR /&gt;&lt;BR /&gt;is it possible to extract the timestamp from the event directly and apply it to timestamp field at search time?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used the below search but still my timestamp is getting rounded&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;index="abc" sourcetype="test"&lt;BR /&gt;| rex "\["BS"\":\"(?&amp;lt;event_time&amp;gt;\d{4}-\d{2}-\d{2} \d{2}-\d{2}-\d{2}\.\d{3})\""&lt;BR /&gt;| eval timestamp=strptime(event_time,"%Y-%m-%d %H-%M-%S.%3N")&lt;BR /&gt;&lt;BR /&gt;for ex: &lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;2023-04-07&lt;/SPAN&gt; &lt;SPAN class=""&gt;11-37-39.354&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;is rounded to 4/7/23 11:37:40.000 AM under Time column in search.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2023 17:42:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-build-props-conf/m-p/639235#M109148</guid>
      <dc:creator>Roy_9</dc:creator>
      <dc:date>2023-04-07T17:42:02Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed with building props.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-build-props-conf/m-p/641170#M109368</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/1406"&gt;@woodcock&lt;/a&gt;&amp;nbsp;I tried your config by creating the sourcetype directly on splunk cloud but it isn’t working,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;timestamp is still getting rounded in the event instead of accurately displaying the timestamp with milli seconds.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2023 18:05:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-build-props-conf/m-p/641170#M109368</guid>
      <dc:creator>Roy_9</dc:creator>
      <dc:date>2023-04-24T18:05:04Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed with building props.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-build-props-conf/m-p/641171#M109369</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/158935"&gt;@yeahnah&lt;/a&gt;&amp;nbsp;I&amp;nbsp;&lt;SPAN&gt;tried your config by creating the sourcetype directly on splunk cloud but it isn’t working,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;timestamp is still getting rounded in the event instead of accurately displaying the timestamp with milli seconds.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2023 18:08:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-build-props-conf/m-p/641171#M109369</guid>
      <dc:creator>Roy_9</dc:creator>
      <dc:date>2023-04-24T18:08:26Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed with building props.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-build-props-conf/m-p/641173#M109370</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;It didn’t worked, timestamp is getting rounded to nearest second&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2023 18:16:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-build-props-conf/m-p/641173#M109370</guid>
      <dc:creator>Roy_9</dc:creator>
      <dc:date>2023-04-24T18:16:11Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed with building props.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-build-props-conf/m-p/641183#M109371</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;have you try %3Q instead of %3N? Probably doesn’t help, but maybe worth for try?&lt;/P&gt;&lt;P&gt;r. Ismo&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2023 19:32:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-build-props-conf/m-p/641183#M109371</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2023-04-24T19:32:02Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed with building props.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-build-props-conf/m-p/641241#M109378</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/224632"&gt;@Roy_9&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;it's really strange: because timestamp extraction doesn't round, it reads the time and assign it to the timestamp; then, if you used %3N, it should take the milliseconds.&lt;/P&gt;&lt;P&gt;Could you share your props.conf?&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2023 09:05:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-build-props-conf/m-p/641241#M109378</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-04-25T09:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to build props.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-build-props-conf/m-p/641244#M109379</link>
      <description>&lt;P&gt;OK, first and foremost - what is your architecture? Are you ingesting data with UF? HF? Sending directly to Cloud HEC input?&lt;/P&gt;&lt;P&gt;Because _what_ is in your props.conf is one thing but _where_ it should be placed is another.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2023 09:11:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-build-props-conf/m-p/641244#M109379</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2023-04-25T09:11:19Z</dc:date>
    </item>
  </channel>
</rss>

