<?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: XML Event breaking and routing to nullqueue in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/XML-Event-breaking-and-routing-to-nullqueue/m-p/360188#M20831</link>
    <description>&lt;P&gt;Great!! It worked. Thanks for the fix.&lt;/P&gt;</description>
    <pubDate>Thu, 26 Apr 2018 09:30:42 GMT</pubDate>
    <dc:creator>jsanjeb</dc:creator>
    <dc:date>2018-04-26T09:30:42Z</dc:date>
    <item>
      <title>XML Event breaking and routing to nullqueue</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/XML-Event-breaking-and-routing-to-nullqueue/m-p/360186#M20829</link>
      <description>&lt;P&gt;Hi Splunkers,&lt;/P&gt;

&lt;P&gt;I am working on removing XML headers of events coming from queue to Splunk. However the events are not breaking as expected as I am not able to figure out right regex. XML is like this,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;`Tue Apr 24 07:34:13 CDT 2018 name=QUEUE_msg_received event_id=ID:414d5120504443524444303220202020f4decc5ac8811c21 msg_dest=MFTTRANSACTION.EVENTS.LOG.INPUT.QUEUE msg_body=&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&amp;lt;transaction version="5.00" ID="414d512050424d4654443031202020202030cb5a1d29fb24" agentRole="callAgent" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="TransferLog.xsd" xmlns=""&amp;gt;&amp;lt;action time="2018-04-24T12:34:12.813Z"&amp;gt;completed&amp;lt;/action&amp;gt;&amp;lt;agent agent="SAPBE_DEV_C700S021_01" QMgr="PBMFTD01"&amp;gt;&amp;lt;systemInfo architecture="IA64N" name="HP-UX" version="B.11.31"/&amp;gt;&amp;lt;/agent&amp;gt;SAPBE_DEV_C700S021_01&amp;lt;/line&amp;gt;&amp;lt;line&amp;gt;BFGCL0213I: agent SAPBE_DEV_C700S021_01 responded to ping in 0.403 seconds.&amp;lt;/line&amp;gt;&amp;lt;line&amp;gt;BFGCL0212I: Issuing ping request to agent SAPBE_DEV_C700S021_01&amp;lt;line&amp;gt;BFGAN0049I: Move operation assigned transfer ID: 414d512050424d4654443031202020202030cb5a2b29fb24&amp;lt;/line&amp;gt;&amp;lt;line&amp;gt;BFGAN0053I: Successfully completion of move operation: 414d512050424d4654443031202020202030cb5a2b29fb24&amp;lt;/line&amp;gt;&amp;lt;line&amp;gt;BFGCL0211I: &amp;lt;/line&amp;gt;&amp;lt;line&amp;gt;BFGCL0211I: complete:&amp;lt;/line&amp;gt;&amp;lt;line&amp;gt;BFGCL0210W: Transfer Complete&amp;lt;/line&amp;gt;&amp;lt;/stdout&amp;gt;&amp;lt;/result&amp;gt;&amp;lt;/callResult&amp;gt;&amp;lt;/call&amp;gt;&amp;lt;/transferSet&amp;gt;&amp;lt;statistics&amp;gt;&amp;lt;retryCount&amp;gt;0&amp;lt;/retryCount&amp;gt;&amp;lt;numFileFailures&amp;gt;0&amp;lt;/numFileFailures&amp;gt;&amp;lt;numFileWarnings&amp;gt;0&amp;lt;/numFileWarnings&amp;gt;&amp;lt;/statistics&amp;gt;&amp;lt;/transaction&amp;gt;`
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I should break the events in this way, &lt;/P&gt;

&lt;P&gt;Event first half,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Tue Apr 24 07:34:13 CDT 2018 name=QUEUE_msg_received event_id=ID:414d5120504443524444303220202020f4decc5ac8811c21 msg_dest=MFTTRANSACTION.EVENTS.LOG.INPUT.QUEUE msg_body=
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Event second half,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&amp;lt;transaction version="5.00" ID="414d512050424d4654443031202020202030cb5a1d29fb24" agentRole="callAgent" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="TransferLog.xsd" xmlns=""&amp;gt;&amp;lt;action time="2018-04-24T12:34:12.813Z"&amp;gt;completed&amp;lt;/action&amp;gt;&amp;lt;agent agent="SAPBE_DEV_C700S021_01" QMgr="PBMFTD01"&amp;gt;&amp;lt;systemInfo architecture="IA64N" name="HP-UX" version="B.11.31"/&amp;gt;&amp;lt;/agent&amp;gt;SAPBE_DEV_C700S021_01&amp;lt;/line&amp;gt;&amp;lt;line&amp;gt;BFGCL0213I: agent SAPBE_DEV_C700S021_01 responded to ping in 0.403 seconds.&amp;lt;/line&amp;gt;&amp;lt;line&amp;gt;BFGCL0212I: Issuing ping request to agent SAPBE_DEV_C700S021_01&amp;lt;line&amp;gt;BFGAN0049I: Move operation assigned transfer ID: 414d512050424d4654443031202020202030cb5a2b29fb24&amp;lt;/line&amp;gt;&amp;lt;line&amp;gt;BFGAN0053I: Successfully completion of move operation: 414d512050424d4654443031202020202030cb5a2b29fb24&amp;lt;/line&amp;gt;&amp;lt;line&amp;gt;BFGCL0211I: &amp;lt;/line&amp;gt;&amp;lt;line&amp;gt;BFGCL0211I: complete:&amp;lt;/line&amp;gt;&amp;lt;line&amp;gt;BFGCL0210W: Transfer Complete&amp;lt;/line&amp;gt;&amp;lt;/stdout&amp;gt;&amp;lt;/result&amp;gt;&amp;lt;/callResult&amp;gt;&amp;lt;/call&amp;gt;&amp;lt;/transferSet&amp;gt;&amp;lt;statistics&amp;gt;&amp;lt;retryCount&amp;gt;0&amp;lt;/retryCount&amp;gt;&amp;lt;numFileFailures&amp;gt;0&amp;lt;/numFileFailures&amp;gt;&amp;lt;numFileWarnings&amp;gt;0&amp;lt;/numFileWarnings&amp;gt;&amp;lt;/statistics&amp;gt;&amp;lt;/transaction&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I should route event first half to nullqueue while sending the second half to indexer. Kindly help me with regex for null proper line breaking as well as regex for routing to nullqueue.&lt;/P&gt;

&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2018 08:27:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/XML-Event-breaking-and-routing-to-nullqueue/m-p/360186#M20829</guid>
      <dc:creator>jsanjeb</dc:creator>
      <dc:date>2018-04-25T08:27:38Z</dc:date>
    </item>
    <item>
      <title>Re: XML Event breaking and routing to nullqueue</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/XML-Event-breaking-and-routing-to-nullqueue/m-p/360187#M20830</link>
      <description>&lt;P&gt;Try this in props.conf of your indexer/heavy forwarder (the SEDCMD will remove the text you don't want in your event)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[yourSourceTypeHere]
SHOULD_LINEMERGE = false
LINE_BREAKER = ([\r\n]+)(?=\w+\s+\w+\s+\d{2}\:\d{2}\:\d{2})
TIME_PREFIX = time=\"
TIME_FORMAT = %Y-%m-%dT%H:%M:%S.%3N%z
MAX_TIMESTAMP_LOOKAHEAD = 24
SEDCMD-removeheader = s/^(.+)\smsg_body\=//g
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 25 Apr 2018 16:48:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/XML-Event-breaking-and-routing-to-nullqueue/m-p/360187#M20830</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-04-25T16:48:23Z</dc:date>
    </item>
    <item>
      <title>Re: XML Event breaking and routing to nullqueue</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/XML-Event-breaking-and-routing-to-nullqueue/m-p/360188#M20831</link>
      <description>&lt;P&gt;Great!! It worked. Thanks for the fix.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Apr 2018 09:30:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/XML-Event-breaking-and-routing-to-nullqueue/m-p/360188#M20831</guid>
      <dc:creator>jsanjeb</dc:creator>
      <dc:date>2018-04-26T09:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: XML Event breaking and routing to nullqueue</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/XML-Event-breaking-and-routing-to-nullqueue/m-p/360189#M20832</link>
      <description>&lt;P&gt;But the header which i have mentioned in question ie event first half is added by forwarder to the data. Is there a way we can stop forwarder from adding this?&lt;/P&gt;</description>
      <pubDate>Thu, 26 Apr 2018 09:33:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/XML-Event-breaking-and-routing-to-nullqueue/m-p/360189#M20832</guid>
      <dc:creator>jsanjeb</dc:creator>
      <dc:date>2018-04-26T09:33:09Z</dc:date>
    </item>
  </channel>
</rss>

