<?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: Cisco CDR: How to remove two columns in report extraction in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Cisco-CDR-How-to-remove-two-columns-in-report-extraction/m-p/439183#M124948</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/7481i8504395DA17E64AB/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 12 Aug 2019 15:09:53 GMT</pubDate>
    <dc:creator>fiveitsplunk</dc:creator>
    <dc:date>2019-08-12T15:09:53Z</dc:date>
    <item>
      <title>Cisco CDR: How to remove two columns in report extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Cisco-CDR-How-to-remove-two-columns-in-report-extraction/m-p/439182#M124947</link>
      <description>&lt;P&gt;I need to remove these two columns in the report extraction, I already removed the values in the "search" for these columns, but still they are displayed.&lt;BR /&gt;
I need remove "loginUserID" and "huntPilotDN" ;&lt;/P&gt;

&lt;P&gt;My search: &lt;BR /&gt;
&lt;CODE&gt;cdr_events&lt;/CODE&gt; ( (callingPartyGroup="Ramais" OR originalCalledPartyGroup="Ramais" OR finalCalledPartyGroup="Ramais") ) ( (callingPartySubgroup="SSZ" OR originalCalledPartySubgroup="SSZ" OR finalCalledPartySubgroup="SSZ") )    duration&amp;gt;0&lt;BR /&gt;
| fillnull duration value="0"&lt;BR /&gt;
| fillnull callingPartyUnicodeLoginUserID originalCalledPartyLoginUserID finalCalledPartyLoginUserID value="(none)"&lt;BR /&gt;
| eval {type}_duration=duration&lt;BR /&gt;
| eval {type}_callId=callId&lt;BR /&gt;
| &lt;CODE&gt;calculate_all_internal_parties&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;| stats values(loginUserID) as loginUserID values(huntPilotDN) as huntPilotDN dc(incoming_callId) as incoming dc(outgoing_callId) as outgoing dc(internal_callId) as internal dc(callId) as total sum(incoming_duration) as incoming_duration sum(outgoing_duration) as outgoing_duration sum(internal_duration) as internal_duration sum(duration) as total_duration values(partyName) as name by number&lt;BR /&gt;
| lookup groups number as number output name group subgroup&lt;BR /&gt;
| search *   ( group="Ramais" ) ( subgroup="SSZ" ) &lt;BR /&gt;
| &lt;CODE&gt;fields_for_internal_parties&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 01:41:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Cisco-CDR-How-to-remove-two-columns-in-report-extraction/m-p/439182#M124947</guid>
      <dc:creator>fiveitsplunk</dc:creator>
      <dc:date>2020-09-30T01:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: Cisco CDR: How to remove two columns in report extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Cisco-CDR-How-to-remove-two-columns-in-report-extraction/m-p/439183#M124948</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/7481i8504395DA17E64AB/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2019 15:09:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Cisco-CDR-How-to-remove-two-columns-in-report-extraction/m-p/439183#M124948</guid>
      <dc:creator>fiveitsplunk</dc:creator>
      <dc:date>2019-08-12T15:09:53Z</dc:date>
    </item>
    <item>
      <title>Re: Cisco CDR: How to remove two columns in report extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Cisco-CDR-How-to-remove-two-columns-in-report-extraction/m-p/439184#M124949</link>
      <description>&lt;P&gt;@fiveitsplunk remove following two aggregates from your &lt;CODE&gt;stats&lt;/CODE&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; values(loginUserID) as loginUserID values(huntPilotDN) as huntPilotDN 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 12 Aug 2019 15:27:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Cisco-CDR-How-to-remove-two-columns-in-report-extraction/m-p/439184#M124949</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2019-08-12T15:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: Cisco CDR: How to remove two columns in report extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Cisco-CDR-How-to-remove-two-columns-in-report-extraction/m-p/439185#M124950</link>
      <description>&lt;P&gt;Yes, I removed it from the fields but it still returns after "re-searching".&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2019 15:35:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Cisco-CDR-How-to-remove-two-columns-in-report-extraction/m-p/439185#M124950</guid>
      <dc:creator>fiveitsplunk</dc:creator>
      <dc:date>2019-08-12T15:35:30Z</dc:date>
    </item>
    <item>
      <title>Re: Cisco CDR: How to remove two columns in report extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Cisco-CDR-How-to-remove-two-columns-in-report-extraction/m-p/439186#M124951</link>
      <description>&lt;P&gt;even removing the lines for display it still shows after "searching";&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/7482i8D897ECDDA20901D/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2019 15:36:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Cisco-CDR-How-to-remove-two-columns-in-report-extraction/m-p/439186#M124951</guid>
      <dc:creator>fiveitsplunk</dc:creator>
      <dc:date>2019-08-12T15:36:21Z</dc:date>
    </item>
    <item>
      <title>Re: Cisco CDR: How to remove two columns in report extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Cisco-CDR-How-to-remove-two-columns-in-report-extraction/m-p/439187#M124952</link>
      <description>&lt;P&gt;Alguma sugestão ? &lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 12:22:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Cisco-CDR-How-to-remove-two-columns-in-report-extraction/m-p/439187#M124952</guid>
      <dc:creator>fiveitsplunk</dc:creator>
      <dc:date>2019-08-19T12:22:51Z</dc:date>
    </item>
    <item>
      <title>Re: Cisco CDR: How to remove two columns in report extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Cisco-CDR-How-to-remove-two-columns-in-report-extraction/m-p/439188#M124953</link>
      <description>&lt;P&gt;Sorry for the delayed response!  I hadn't noticed this question until now  - no idea how that escaped me.&lt;/P&gt;

&lt;P&gt;To fix your problem, you can simply - as the very last item in that search - trim out the fields you don't need.  For instance, in your case you probably want to add a line&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... all your other stuff...
| fields - loginUserID huntPilotDN
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;That will use the &lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.0/SearchReference/Fields"&gt;fields&lt;/A&gt; command to remove ( &lt;CODE&gt;-&lt;/CODE&gt;) the two fields &lt;CODE&gt;loginUserID&lt;/CODE&gt; and &lt;CODE&gt;huntPilotDN&lt;/CODE&gt; from the output, leaving all else as the same.&lt;/P&gt;

&lt;P&gt;One other way would be to use the table command and just rewrite which field goes where and, if desired, drop other fields out.   For instance, you could remove those two field, and also move &lt;CODE&gt;total_duration&lt;/CODE&gt; to the left, by &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... all your other stuff...
| table total_duration text number name group subgroup incoming outgoing internal business_hours off_hours total incoming_duration outgoing_duration internal_duration business_hours_duration off_hours_duration 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But  as you can see, that's quite a bit more work and more precarious - you have to use the right capitalization for each field or else it'll just be blank.  So it is much simpler if all you need is to remove a field or two to just use the &lt;CODE&gt;fields&lt;/CODE&gt; command as shown above.  But I thought if you DID need a more complete "change my columns around a bit" I'd give it with that table command.&lt;/P&gt;

&lt;P&gt;Let us know if this worked for you by marking it as Accepted, please!  If it did not, please post back and we can make it jump through any additional hoops you need!&lt;/P&gt;

&lt;P&gt;Happy Splunking,&lt;BR /&gt;
Richfez&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2019 16:03:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Cisco-CDR-How-to-remove-two-columns-in-report-extraction/m-p/439188#M124953</guid>
      <dc:creator>Richfez</dc:creator>
      <dc:date>2019-12-09T16:03:38Z</dc:date>
    </item>
  </channel>
</rss>

