<?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: IIS failedRequests - How to define line breaking for XML / Filter events in XML to nullQueue in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/IIS-failedRequests-How-to-define-line-breaking-for-XML-Filter/m-p/109934#M23089</link>
    <description>&lt;P&gt;It turned out that all above is correct, but I was not aware of the need to restart Splunk - I did only &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;splunk reload deploy-server
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So now when I checked a few days later, all was fine.&lt;/P&gt;</description>
    <pubDate>Wed, 12 Nov 2014 19:58:42 GMT</pubDate>
    <dc:creator>rune_hellem</dc:creator>
    <dc:date>2014-11-12T19:58:42Z</dc:date>
    <item>
      <title>IIS failedRequests - How to define line breaking for XML / Filter events in XML to nullQueue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/IIS-failedRequests-How-to-define-line-breaking-for-XML-Filter/m-p/109933#M23088</link>
      <description>&lt;P&gt;I am trying to configure Splunk to index IIS failedrequests. My priority is &lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;To have Splunk indexing the Event- tags correctly&lt;/LI&gt;
&lt;LI&gt;To index the single Failedrequest-tag which every file starts with&lt;/LI&gt;
&lt;LI&gt;And then finally least imporant ignoring XML declarations and comments (to avoid DateParserErrors)&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;My current config &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;props.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[iisfailedrequests]
TIME_FORMAT=%Y-%m-%dT%T.%L
TIME_PREFIX=&amp;lt;TimeCreated SystemTime=\"
MAX_TIMESTAMP_LOOKAHEAD=128
SHOULD_LINEMERGE=true
BREAK_ONLY_BEFORE=^&amp;lt;Event|^&amp;lt;failedRequest
TRANSFORMS-removexml = removexml
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;transforms.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[removexml]
REGEX = (^\&amp;lt;\?xml.*|^\&amp;lt;\!--.*)
DEST_KEY = queue
FORMAT = nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And an example &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;?xml version="1.0" encoding="UTF-8" ?&amp;gt;
&amp;lt;?xml-stylesheet type='text/xsl' href='freb.xsl'?&amp;gt;
&amp;lt;!-- saved from url=(0014)about:internet --&amp;gt;
&amp;lt;failedRequest url="http://server.company.domain/SAFService/SAFService.svc"
               siteId="7"
               appPoolId="SafServiceAppPool"
               processId="3872"
               verb="POST"
               remoteUserName=""
               userName=""
               tokenUserName="NT AUTHORITY\IUSR"
               authenticationType="anonymous"
               activityId="{00000000-0000-0000-977F-0080000000FD}"
               failureReason="STATUS_CODE"
               statusCode="500"
               triggerStatusCode="500"
               timeTaken="59782"
               xmlns:freb="http://schemas.microsoft.com/win/2006/06/iis/freb"
               &amp;gt;
&amp;lt;Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event"&amp;gt;
 &amp;lt;System&amp;gt;
  &amp;lt;Provider Name="WWW Server" Guid="{3A2A4E84-4C21-4981-AE10-3FDADADA0D9B0F83}"/&amp;gt;
  &amp;lt;EventID&amp;gt;0&amp;lt;/EventID&amp;gt;
  &amp;lt;Version&amp;gt;1&amp;lt;/Version&amp;gt;
  &amp;lt;Level&amp;gt;0&amp;lt;/Level&amp;gt;
  &amp;lt;Opcode&amp;gt;1&amp;lt;/Opcode&amp;gt;
  &amp;lt;Keywords&amp;gt;0x0&amp;lt;/Keywords&amp;gt;
  &amp;lt;TimeCreated SystemTime="2014-10-30T09:51:21.274Z"/&amp;gt;
  &amp;lt;Correlation ActivityID="{00000000-0000-0000-977F-0080000000FD}"/&amp;gt;
  &amp;lt;Execution ProcessID="3872" ThreadID="3460"/&amp;gt;
  &amp;lt;Computer&amp;gt;KLPDSTCPH050V&amp;lt;/Computer&amp;gt;
 &amp;lt;/System&amp;gt;
 &amp;lt;EventData&amp;gt;
  &amp;lt;Data Name="ContextId"&amp;gt;{00000000-0000-0000-977F-0080000000FD}&amp;lt;/Data&amp;gt;
  &amp;lt;Data Name="SiteId"&amp;gt;7&amp;lt;/Data&amp;gt;
  &amp;lt;Data Name="AppPoolId"&amp;gt;SafServiceAppPool&amp;lt;/Data&amp;gt;
  &amp;lt;Data Name="ConnId"&amp;gt;1610645394&amp;lt;/Data&amp;gt;
  &amp;lt;Data Name="RawConnId"&amp;gt;0&amp;lt;/Data&amp;gt;
  &amp;lt;Data Name="RequestURL"&amp;gt;http://server.company.domain/SAFService/SAFService.svc&amp;lt;/Data&amp;gt;
  &amp;lt;Data Name="RequestVerb"&amp;gt;POST&amp;lt;/Data&amp;gt;
 &amp;lt;/EventData&amp;gt;
 &amp;lt;RenderingInfo Culture="nb-NO"&amp;gt;
  &amp;lt;Opcode&amp;gt;GENERAL_REQUEST_START&amp;lt;/Opcode&amp;gt;
 &amp;lt;/RenderingInfo&amp;gt;
 &amp;lt;ExtendedTracingInfo xmlns="http://schemas.microsoft.com/win/2004/08/events/trace"&amp;gt;
  &amp;lt;EventGuid&amp;gt;{D42CF7EF-DE92-473E-8B6C-621EAADADE663113A}&amp;lt;/EventGuid&amp;gt;
 &amp;lt;/ExtendedTracingInfo&amp;gt;
&amp;lt;/Event&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 10 Nov 2014 17:36:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/IIS-failedRequests-How-to-define-line-breaking-for-XML-Filter/m-p/109933#M23088</guid>
      <dc:creator>rune_hellem</dc:creator>
      <dc:date>2014-11-10T17:36:56Z</dc:date>
    </item>
    <item>
      <title>Re: IIS failedRequests - How to define line breaking for XML / Filter events in XML to nullQueue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/IIS-failedRequests-How-to-define-line-breaking-for-XML-Filter/m-p/109934#M23089</link>
      <description>&lt;P&gt;It turned out that all above is correct, but I was not aware of the need to restart Splunk - I did only &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;splunk reload deploy-server
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So now when I checked a few days later, all was fine.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Nov 2014 19:58:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/IIS-failedRequests-How-to-define-line-breaking-for-XML-Filter/m-p/109934#M23089</guid>
      <dc:creator>rune_hellem</dc:creator>
      <dc:date>2014-11-12T19:58:42Z</dc:date>
    </item>
  </channel>
</rss>

