<?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: Avaya System Manager CDR XML formating in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Avaya-System-Manager-CDR-XML-formating/m-p/303146#M19331</link>
    <description>&lt;P&gt;Thank you so much. That's done the trick perfectly. I need to get rid of the XML lines, but I'm pretty sure I've seen that somewhere else, so I'll give it a bash first. Even with it in there, it's prefectly usable and now I can crack on getting the data I need set up.&lt;BR /&gt;
Once again, thanks!&lt;/P&gt;</description>
    <pubDate>Wed, 29 Mar 2017 08:25:52 GMT</pubDate>
    <dc:creator>StuReeves</dc:creator>
    <dc:date>2017-03-29T08:25:52Z</dc:date>
    <item>
      <title>Avaya System Manager CDR XML formating</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Avaya-System-Manager-CDR-XML-formating/m-p/303142#M19327</link>
      <description>&lt;P&gt;Hi hope someone can help. I'm new to Splunk and can see it's potential for what I require, but I'm struggling to get some XML's to format correctly. I've looked at loads of example answers, but none of them see to make the xml easily readable, I've a feeling when trying to apply examples, because the word "call" appears so often, it's messing up the result. I've trying multiple examples in props.conf and transforms.conf, but seems to have little effect&lt;BR /&gt;
What I'm trying to achieve is the info between &lt;CODE&gt;&amp;lt;call&amp;gt;&lt;/CODE&gt; and &lt;CODE&gt;&amp;lt;/call&amp;gt;&lt;/CODE&gt; (not calls and calls) to appear on an combined line and "discard" the rest. At the moment it all seems to be a little bit all over the place.&lt;BR /&gt;
Any help would be really, really appreciated.&lt;BR /&gt;
Hopefully once I can get the basics done, I can progress onto a nice set up anyone can use.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;?xml version="1.0"?&amp;gt;
&amp;lt;calls&amp;gt;
    &amp;lt;call&amp;gt;
        &amp;lt;call_time&amp;gt;2017-03-27T15:46:38+01:00&amp;lt;/call_time&amp;gt;
        &amp;lt;duration&amp;gt;PT50.189S&amp;lt;/duration&amp;gt;
        &amp;lt;condition_code&amp;gt;9&amp;lt;/condition_code&amp;gt;
        &amp;lt;parties&amp;gt;
            &amp;lt;dialed_number&amp;gt;0063123456789@NNN.com&amp;lt;/dialed_number&amp;gt;
            &amp;lt;calling_number&amp;gt;0112456789@NNN.com&amp;lt;/calling_number&amp;gt;
        &amp;lt;/parties&amp;gt;
        &amp;lt;sip_entities&amp;gt;
            &amp;lt;terminating&amp;gt;NNNLISBCE&amp;lt;/terminating&amp;gt;
            &amp;lt;originating&amp;gt;UKDCNNNNNNN&amp;lt;/originating&amp;gt;
        &amp;lt;/sip_entities&amp;gt;
        &amp;lt;feature_flag&amp;gt;4&amp;lt;/feature_flag&amp;gt;
        &amp;lt;bcc&amp;gt;M&amp;lt;/bcc&amp;gt;
        &amp;lt;ma_uui&amp;gt;0&amp;lt;/ma_uui&amp;gt;
        &amp;lt;resource_flag&amp;gt;0&amp;lt;/resource_flag&amp;gt;
        &amp;lt;bandwidth&amp;gt;1&amp;lt;/bandwidth&amp;gt;
        &amp;lt;av_gsid&amp;gt;007651bf-NNNN-4701-NNNN-57c36b590000&amp;lt;/av_gsid&amp;gt;
        &amp;lt;ip_addresses&amp;gt;
            &amp;lt;calling&amp;gt;192.0.0.50&amp;lt;/calling&amp;gt;
            &amp;lt;called&amp;gt;192.0.0.51&amp;lt;/called&amp;gt;
        &amp;lt;/ip_addresses&amp;gt;
        &amp;lt;usage&amp;gt;
            &amp;lt;voice&amp;gt;Y&amp;lt;/voice&amp;gt;
            &amp;lt;video&amp;gt;N&amp;lt;/video&amp;gt;
            &amp;lt;fax&amp;gt;N&amp;lt;/fax&amp;gt;
            &amp;lt;text&amp;gt;N&amp;lt;/text&amp;gt;
            &amp;lt;other&amp;gt;N&amp;lt;/other&amp;gt;
        &amp;lt;/usage&amp;gt;
        &amp;lt;codec&amp;gt;8&amp;lt;/codec&amp;gt;
        &amp;lt;tenant_ids&amp;gt;
            &amp;lt;calling&amp;gt;&amp;lt;/calling&amp;gt;
            &amp;lt;called&amp;gt;&amp;lt;/called&amp;gt;
        &amp;lt;/tenant_ids&amp;gt;
    &amp;lt;/call&amp;gt;
    &amp;lt;call&amp;gt;
        &amp;lt;call_time&amp;gt;2017-03-27T15:46:53+01:00&amp;lt;/call_time&amp;gt;
        &amp;lt;duration&amp;gt;PT19.737S&amp;lt;/duration&amp;gt;
        &amp;lt;condition_code&amp;gt;9&amp;lt;/condition_code&amp;gt;
        &amp;lt;parties&amp;gt;
            &amp;lt;dialed_number&amp;gt;*0123456789@NNN.com:5060&amp;lt;/dialed_number&amp;gt;
            &amp;lt;calling_number&amp;gt;0987654321@192.0.0.52:19937&amp;lt;/calling_number&amp;gt;
        &amp;lt;/parties&amp;gt;
        &amp;lt;sip_entities&amp;gt;
            &amp;lt;terminating&amp;gt;UKDCNNNNNN&amp;lt;/terminating&amp;gt;
            &amp;lt;originating&amp;gt;RONNNNNNN&amp;lt;/originating&amp;gt;
        &amp;lt;/sip_entities&amp;gt;
        &amp;lt;feature_flag&amp;gt;4&amp;lt;/feature_flag&amp;gt;
        &amp;lt;bcc&amp;gt;M&amp;lt;/bcc&amp;gt;
        &amp;lt;ma_uui&amp;gt;0&amp;lt;/ma_uui&amp;gt;
        &amp;lt;resource_flag&amp;gt;0&amp;lt;/resource_flag&amp;gt;
        &amp;lt;bandwidth&amp;gt;1&amp;lt;/bandwidth&amp;gt;
        &amp;lt;av_gsid&amp;gt;2a774e90-NNNN-11e7-NNNNN-f8bc125544b0&amp;lt;/av_gsid&amp;gt;
        &amp;lt;ip_addresses&amp;gt;
            &amp;lt;calling&amp;gt;192.0.0.50&amp;lt;/calling&amp;gt;
            &amp;lt;called&amp;gt;192.0.0.55&amp;lt;/called&amp;gt;
        &amp;lt;/ip_addresses&amp;gt;
        &amp;lt;usage&amp;gt;
            &amp;lt;voice&amp;gt;Y&amp;lt;/voice&amp;gt;
            &amp;lt;video&amp;gt;N&amp;lt;/video&amp;gt;
            &amp;lt;fax&amp;gt;N&amp;lt;/fax&amp;gt;
            &amp;lt;text&amp;gt;N&amp;lt;/text&amp;gt;
            &amp;lt;other&amp;gt;N&amp;lt;/other&amp;gt;
        &amp;lt;/usage&amp;gt;
        &amp;lt;codec&amp;gt;8&amp;lt;/codec&amp;gt;
        &amp;lt;tenant_ids&amp;gt;
            &amp;lt;calling&amp;gt;&amp;lt;/calling&amp;gt;
            &amp;lt;called&amp;gt;&amp;lt;/called&amp;gt;
        &amp;lt;/tenant_ids&amp;gt;
    &amp;lt;/call&amp;gt;
        &amp;lt;/call&amp;gt;
&amp;lt;/calls&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 28 Mar 2017 11:12:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Avaya-System-Manager-CDR-XML-formating/m-p/303142#M19327</guid>
      <dc:creator>StuReeves</dc:creator>
      <dc:date>2017-03-28T11:12:27Z</dc:date>
    </item>
    <item>
      <title>Re: Avaya System Manager CDR XML formating</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Avaya-System-Manager-CDR-XML-formating/m-p/303143#M19328</link>
      <description>&lt;P&gt;Use this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;LINE_BREAKER = (&amp;lt;\/call&amp;gt;[\r\n\s]+&amp;lt;call&amp;gt;[\r\n\s]+)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You can use the spath command to get the values that you want. See the xml examples towards the bottom.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0/SearchReference/Spath"&gt;http://docs.splunk.com/Documentation/Splunk/5.0/SearchReference/Spath&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;You can also have Splunk extract all fields automatically for you:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://splunk-base.splunk.com/answers/2889/automatically-extract-xml-key-value-pairs"&gt;http://splunk-base.splunk.com/answers/2889/automatically-extract-xml-key-value-pairs&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2017 15:01:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Avaya-System-Manager-CDR-XML-formating/m-p/303143#M19328</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-03-28T15:01:27Z</dc:date>
    </item>
    <item>
      <title>Re: Avaya System Manager CDR XML formating</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Avaya-System-Manager-CDR-XML-formating/m-p/303144#M19329</link>
      <description>&lt;P&gt;Thanks for getting back so quickly but it hasn't solved my issues (unless I'm missing something). I created a new props.conf and entered the line.&lt;BR /&gt;
I may be misunderstanding how it should display, but this is what I currently get output on a raw search.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://goo.gl/photos/ry5jtXkdRh4Dt1wg7"&gt;https://goo.gl/photos/ry5jtXkdRh4Dt1wg7&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2017 15:35:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Avaya-System-Manager-CDR-XML-formating/m-p/303144#M19329</guid>
      <dc:creator>StuReeves</dc:creator>
      <dc:date>2017-03-28T15:35:45Z</dc:date>
    </item>
    <item>
      <title>Re: Avaya System Manager CDR XML formating</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Avaya-System-Manager-CDR-XML-formating/m-p/303145#M19330</link>
      <description>&lt;P&gt;You need make sure that you also set &lt;CODE&gt;SHOULD_LINEMERGE = false&lt;/CODE&gt;.  You need to deploy this to your Indexers and restart splunk there.  Even then, only events forwarded AFTER the restarts will show correctly; previously indexed events will always stay broken (&amp;lt;- literally).&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2017 00:45:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Avaya-System-Manager-CDR-XML-formating/m-p/303145#M19330</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-03-29T00:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: Avaya System Manager CDR XML formating</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Avaya-System-Manager-CDR-XML-formating/m-p/303146#M19331</link>
      <description>&lt;P&gt;Thank you so much. That's done the trick perfectly. I need to get rid of the XML lines, but I'm pretty sure I've seen that somewhere else, so I'll give it a bash first. Even with it in there, it's prefectly usable and now I can crack on getting the data I need set up.&lt;BR /&gt;
Once again, thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2017 08:25:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Avaya-System-Manager-CDR-XML-formating/m-p/303146#M19331</guid>
      <dc:creator>StuReeves</dc:creator>
      <dc:date>2017-03-29T08:25:52Z</dc:date>
    </item>
    <item>
      <title>Re: Avaya System Manager CDR XML formating</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Avaya-System-Manager-CDR-XML-formating/m-p/303147#M19332</link>
      <description>&lt;P&gt;I'd thought I'd drop an example search I've done for this that formats some of the output, as it can get a little mangled. I'm still getting my head around how Splunk works, but I hope it helps someone.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;basesearch&amp;gt; | replace *T* with "* *" in call_time |replace PT*H*M*S with "* Hours * Minutes * Seconds" in duration|replace PT*M*S with "* Minutes * Seconds" in duration | replace PT*.* with "*.* Seconds"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 06 Apr 2017 15:06:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Avaya-System-Manager-CDR-XML-formating/m-p/303147#M19332</guid>
      <dc:creator>StuReeves</dc:creator>
      <dc:date>2017-04-06T15:06:23Z</dc:date>
    </item>
  </channel>
</rss>

