<?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 Help with props.conf to break events in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Help-with-props-conf-to-break-events/m-p/595993#M104082</link>
    <description>&lt;P&gt;I am trying to work on props.conf to parse and break correctly.I am pushing data using CURL commands but it is sending 50 logs in one event.It worked through UI but failing when sent from CURL commands.I want to break it into individual events .Only the first event start with&amp;nbsp; &amp;nbsp;"{"sourcetype": "json","event": {"&lt;/P&gt;
&lt;P&gt;AND ends with "last_updated" (EXAMPLE:"last_updated": "2022-03-24T02:35:41.148727Z"&lt;BR /&gt;},) .Rest of the events START WITH ID and end with last_updated....There are lot of nested ID in the event which I did not post but the syntax should be something that will break after last_updated&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want the events to BREAK AFTER THE&amp;nbsp;"last_updated"&amp;nbsp; followed by closed flower brackets and the new event should start from&amp;nbsp;&lt;/P&gt;
&lt;P&gt;NOTE:ONLY THE first event start is different ..rest all events start with id and end with last_updated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried BREAK_ONLY_BEFORE=\"\w*\"\:\s\"\d*\-\d*\-\d*\w\d*\:\d*\:\d*\.\d*\w\" ... but its not breaking correctly&lt;/P&gt;
&lt;P&gt;{&lt;BR /&gt;"id":&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Following are the sample events that I want to break&lt;/P&gt;
&lt;P&gt;Event1:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{"sourcetype": "json","event": {
.
.
.
.
.
},
"created": "2022-02-07",
"last_updated": "2022-03-24T02:35:41.083145Z"&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Event 2:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{
"id": 150749,
"name": "no hostname 1660322000234",
.
.
.
.
.
"created": "2022-02-07",
"last_updated": "2022-03-24T02:35:41.148727Z"
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I used the below props...it worked uploading sample file via GUI but when I used this sourcetype in CURL through HEC it is not breaking.&lt;/P&gt;
&lt;P&gt;[ Netbox ]&lt;BR /&gt;CHARSET=UTF-8&lt;BR /&gt;DATETIME_CONFIG=CURRENT&lt;BR /&gt;LINE_BREAKER=([\r\n]+)\s+{&lt;BR /&gt;MUST_BREAK_BEFORE=\"\w*\"\:\s\"\d*\-\d*\-\d*\w\d*\:\d*\:\d*\.\d*\w\"&lt;BR /&gt;NO_BINARY_CHECK=true&lt;BR /&gt;SHOULD_LINEMERGE=false&lt;BR /&gt;category=Custom&lt;BR /&gt;disabled=false&lt;BR /&gt;pulldown_type=true&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;CURL:&lt;/P&gt;
&lt;PRE&gt;curl -k &lt;A href="http://10.52.10.17:8088/services/collector/event" target="_blank" rel="noopener noreferrer"&gt;http://10.xx.xx.xx:8088/services/collector/event&lt;/A&gt; -H 'Authorization: Splunk &amp;lt;TOKEN&amp;gt;' -d '{"sourcetype": "Netbox","event": '"$SITEINFO"'}'&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 30 Apr 2022 19:46:00 GMT</pubDate>
    <dc:creator>vrmandadi</dc:creator>
    <dc:date>2022-04-30T19:46:00Z</dc:date>
    <item>
      <title>Help with props.conf to break events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-with-props-conf-to-break-events/m-p/595993#M104082</link>
      <description>&lt;P&gt;I am trying to work on props.conf to parse and break correctly.I am pushing data using CURL commands but it is sending 50 logs in one event.It worked through UI but failing when sent from CURL commands.I want to break it into individual events .Only the first event start with&amp;nbsp; &amp;nbsp;"{"sourcetype": "json","event": {"&lt;/P&gt;
&lt;P&gt;AND ends with "last_updated" (EXAMPLE:"last_updated": "2022-03-24T02:35:41.148727Z"&lt;BR /&gt;},) .Rest of the events START WITH ID and end with last_updated....There are lot of nested ID in the event which I did not post but the syntax should be something that will break after last_updated&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want the events to BREAK AFTER THE&amp;nbsp;"last_updated"&amp;nbsp; followed by closed flower brackets and the new event should start from&amp;nbsp;&lt;/P&gt;
&lt;P&gt;NOTE:ONLY THE first event start is different ..rest all events start with id and end with last_updated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried BREAK_ONLY_BEFORE=\"\w*\"\:\s\"\d*\-\d*\-\d*\w\d*\:\d*\:\d*\.\d*\w\" ... but its not breaking correctly&lt;/P&gt;
&lt;P&gt;{&lt;BR /&gt;"id":&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Following are the sample events that I want to break&lt;/P&gt;
&lt;P&gt;Event1:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{"sourcetype": "json","event": {
.
.
.
.
.
},
"created": "2022-02-07",
"last_updated": "2022-03-24T02:35:41.083145Z"&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Event 2:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{
"id": 150749,
"name": "no hostname 1660322000234",
.
.
.
.
.
"created": "2022-02-07",
"last_updated": "2022-03-24T02:35:41.148727Z"
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I used the below props...it worked uploading sample file via GUI but when I used this sourcetype in CURL through HEC it is not breaking.&lt;/P&gt;
&lt;P&gt;[ Netbox ]&lt;BR /&gt;CHARSET=UTF-8&lt;BR /&gt;DATETIME_CONFIG=CURRENT&lt;BR /&gt;LINE_BREAKER=([\r\n]+)\s+{&lt;BR /&gt;MUST_BREAK_BEFORE=\"\w*\"\:\s\"\d*\-\d*\-\d*\w\d*\:\d*\:\d*\.\d*\w\"&lt;BR /&gt;NO_BINARY_CHECK=true&lt;BR /&gt;SHOULD_LINEMERGE=false&lt;BR /&gt;category=Custom&lt;BR /&gt;disabled=false&lt;BR /&gt;pulldown_type=true&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;CURL:&lt;/P&gt;
&lt;PRE&gt;curl -k &lt;A href="http://10.52.10.17:8088/services/collector/event" target="_blank" rel="noopener noreferrer"&gt;http://10.xx.xx.xx:8088/services/collector/event&lt;/A&gt; -H 'Authorization: Splunk &amp;lt;TOKEN&amp;gt;' -d '{"sourcetype": "Netbox","event": '"$SITEINFO"'}'&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 30 Apr 2022 19:46:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-with-props-conf-to-break-events/m-p/595993#M104082</guid>
      <dc:creator>vrmandadi</dc:creator>
      <dc:date>2022-04-30T19:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: Help with props.conf to break events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-with-props-conf-to-break-events/m-p/596013#M104083</link>
      <description>&lt;P&gt;It doesn't work that way. The HEC /collector/event endpoint is meant for already split events. On ingestion from this endpoint Splunk skips the event breaking altogether because you already said where the event starts and where it ends. You should split it before and send as multiple events. You can however send multiple events in one HTTP transaction. Just make sure they are properly formed. Like&lt;/P&gt;&lt;PRE&gt;{ "sourcetype":"whatever","index":"test1","event":"a b c d"}&lt;BR /&gt;{"event":"another one"}&lt;BR /&gt;{"index":"test2","event":{"field1":"value1","field2":"value2"}}&lt;/PRE&gt;&lt;P&gt;I'm not sure if you need commas between the events.&lt;/P&gt;</description>
      <pubDate>Sat, 30 Apr 2022 06:40:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-with-props-conf-to-break-events/m-p/596013#M104083</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2022-04-30T06:40:53Z</dc:date>
    </item>
  </channel>
</rss>

