<?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: Help With Event Cleanup - Remove &amp;quot;-&amp;quot; in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Help-With-Event-Cleanup-Remove-quot-quot/m-p/513015#M143931</link>
    <description>&lt;P&gt;It is!&amp;nbsp; Thank you so much!&lt;/P&gt;</description>
    <pubDate>Fri, 07 Aug 2020 14:25:19 GMT</pubDate>
    <dc:creator>ghostdog920</dc:creator>
    <dc:date>2020-08-07T14:25:19Z</dc:date>
    <item>
      <title>Help With Event Cleanup - Remove "-"</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-With-Event-Cleanup-Remove-quot-quot/m-p/513007#M143925</link>
      <description>&lt;P&gt;I am having a problem with what i believe is writing a regex to clean up some events before i report on them in dashboard.&amp;nbsp; I am pulling specific security events from windows and each event should return a username and a domain.&amp;nbsp; I am getting those results, but with each, it is also returning a second data item "-".&amp;nbsp; That is throwing things off/making it look ugly and i havent had much luck ripping it out.&amp;nbsp; Hoping someone can assist and possibly explain what the solution is doing?&amp;nbsp; I tried to do an eval replace for the field where "-" is replaced with "" but then none of my events showed up so clearly that was wrong.&amp;nbsp; A sample event looks like this to help clarify what i am getting:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SplunkHelpEventExample.png" style="width: 745px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/10103i446C5A87A570D27A/image-size/large?v=v2&amp;amp;px=999" role="button" title="SplunkHelpEventExample.png" alt="SplunkHelpEventExample.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I basically need to drop the first line from both the "Account" and also "Account_Domain" so that i would only get service. and PF as values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As always, help is greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Aug 2020 14:04:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-With-Event-Cleanup-Remove-quot-quot/m-p/513007#M143925</guid>
      <dc:creator>ghostdog920</dc:creator>
      <dc:date>2020-08-07T14:04:11Z</dc:date>
    </item>
    <item>
      <title>Re: Help With Event Cleanup - Remove "-"</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-With-Event-Cleanup-Remove-quot-quot/m-p/513010#M143927</link>
      <description>&lt;LI-CODE lang="markup"&gt;| eval Account_Domain=mvindex(Account_Domain,1), Account_Name=mvindex(Account_Name,1)&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 07 Aug 2020 14:13:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-With-Event-Cleanup-Remove-quot-quot/m-p/513010#M143927</guid>
      <dc:creator>thambisetty</dc:creator>
      <dc:date>2020-08-07T14:13:45Z</dc:date>
    </item>
    <item>
      <title>Re: Help With Event Cleanup - Remove "-"</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-With-Event-Cleanup-Remove-quot-quot/m-p/513011#M143928</link>
      <description>&lt;P&gt;So the mvindex basically says for that field, choose in this case, the 2nd value for the field as the only value for that field?&lt;/P&gt;</description>
      <pubDate>Fri, 07 Aug 2020 14:15:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-With-Event-Cleanup-Remove-quot-quot/m-p/513011#M143928</guid>
      <dc:creator>ghostdog920</dc:creator>
      <dc:date>2020-08-07T14:15:34Z</dc:date>
    </item>
    <item>
      <title>Re: Help With Event Cleanup - Remove "-"</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-With-Event-Cleanup-Remove-quot-quot/m-p/513012#M143929</link>
      <description>&lt;P&gt;yes, considering second value.&lt;/P&gt;&lt;P&gt;Account_Name and Account_Domain fields are multi value fields&amp;nbsp; and fields index start from 0 means 1st value. in our case we needed to consider second value so it would be index 1. hope its clear.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Aug 2020 14:17:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-With-Event-Cleanup-Remove-quot-quot/m-p/513012#M143929</guid>
      <dc:creator>thambisetty</dc:creator>
      <dc:date>2020-08-07T14:17:51Z</dc:date>
    </item>
    <item>
      <title>Re: Help With Event Cleanup - Remove "-"</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-With-Event-Cleanup-Remove-quot-quot/m-p/513015#M143931</link>
      <description>&lt;P&gt;It is!&amp;nbsp; Thank you so much!&lt;/P&gt;</description>
      <pubDate>Fri, 07 Aug 2020 14:25:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-With-Event-Cleanup-Remove-quot-quot/m-p/513015#M143931</guid>
      <dc:creator>ghostdog920</dc:creator>
      <dc:date>2020-08-07T14:25:19Z</dc:date>
    </item>
  </channel>
</rss>

