<?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 Remove everything before backslash in string? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Remove-everything-before-backslash-in-string/m-p/576311#M47221</link>
    <description>&lt;P&gt;I am trying to remove some unwanted characters before the backslash, but it is ignoring some machines as they have different name standards.&lt;BR /&gt;&lt;BR /&gt;I want to remove the domain name and machine name from the Local Administrator group.&lt;/P&gt;&lt;P&gt;&amp;nbsp;My data comes like this in one string as below&lt;/P&gt;&lt;P&gt;labmachine000r\administrator labmachine000d\support&amp;nbsp; labdomain\admingroup labdomain\helpdesk&lt;/P&gt;&lt;P&gt;I managed to remove the characters before the backslash using this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval adminlocal=replace(adminlocal, "\w+(\\\\)+","")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and my result is like below:&lt;/P&gt;&lt;P&gt;administrator support&amp;nbsp; admingroup helpdesk&lt;/P&gt;&lt;P&gt;That is working fine for the machine above, but if I have a machine name like "L-02labmachine000r", the replace command gives the result like this:&lt;/P&gt;&lt;P&gt;L-administrator L-support&amp;nbsp;admingroup helpdesk&lt;/P&gt;&lt;P&gt;Is there any way to adjust my replace command to cover that machine name?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 25 Nov 2021 12:08:57 GMT</pubDate>
    <dc:creator>Nomarja</dc:creator>
    <dc:date>2021-11-25T12:08:57Z</dc:date>
    <item>
      <title>Remove everything before backslash in string?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Remove-everything-before-backslash-in-string/m-p/576311#M47221</link>
      <description>&lt;P&gt;I am trying to remove some unwanted characters before the backslash, but it is ignoring some machines as they have different name standards.&lt;BR /&gt;&lt;BR /&gt;I want to remove the domain name and machine name from the Local Administrator group.&lt;/P&gt;&lt;P&gt;&amp;nbsp;My data comes like this in one string as below&lt;/P&gt;&lt;P&gt;labmachine000r\administrator labmachine000d\support&amp;nbsp; labdomain\admingroup labdomain\helpdesk&lt;/P&gt;&lt;P&gt;I managed to remove the characters before the backslash using this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval adminlocal=replace(adminlocal, "\w+(\\\\)+","")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and my result is like below:&lt;/P&gt;&lt;P&gt;administrator support&amp;nbsp; admingroup helpdesk&lt;/P&gt;&lt;P&gt;That is working fine for the machine above, but if I have a machine name like "L-02labmachine000r", the replace command gives the result like this:&lt;/P&gt;&lt;P&gt;L-administrator L-support&amp;nbsp;admingroup helpdesk&lt;/P&gt;&lt;P&gt;Is there any way to adjust my replace command to cover that machine name?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Nov 2021 12:08:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Remove-everything-before-backslash-in-string/m-p/576311#M47221</guid>
      <dc:creator>Nomarja</dc:creator>
      <dc:date>2021-11-25T12:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: Remove everything before backslash in string?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Remove-everything-before-backslash-in-string/m-p/576315#M47222</link>
      <description>&lt;P&gt;Something like this....&lt;BR /&gt;&lt;BR /&gt;| makeresults&lt;BR /&gt;| eval adminlocal = "labmachine000r\administrator labmachine000d\support labdomain\admingroup labdomain\helpdesk"&lt;BR /&gt;| eval adminlocal=replace(adminlocal, "\w+(\\\\)+","")&lt;BR /&gt;| eval mc = "L-02labmachine000r\administrator L-02labmachine000r\support L-02labmachine000r\admingroup L-02labmachine000r\helpdesk labdomain\admingroup labdomain\helpdesk L-99labmachine000r\admingroup L-0216labmachine000r\helpdesk"&lt;BR /&gt;| eval new_mc=replace(mc,"[\w\d\-]+(\\\)+","")&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Gr0und_Z3r0_0-1637843842052.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/17009iC7AF53EF478825CF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Gr0und_Z3r0_0-1637843842052.png" alt="Gr0und_Z3r0_0-1637843842052.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please upvote if it helps.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Nov 2021 12:37:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Remove-everything-before-backslash-in-string/m-p/576315#M47222</guid>
      <dc:creator>Gr0und_Z3r0</dc:creator>
      <dc:date>2021-11-25T12:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: Remove everything before backslash in string?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Remove-everything-before-backslash-in-string/m-p/576317#M47223</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/240999"&gt;@Gr0und_Z3r0&lt;/a&gt;&amp;nbsp;, that did the trick. I appreciate your help&lt;/P&gt;</description>
      <pubDate>Thu, 25 Nov 2021 12:39:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Remove-everything-before-backslash-in-string/m-p/576317#M47223</guid>
      <dc:creator>Nomarja</dc:creator>
      <dc:date>2021-11-25T12:39:04Z</dc:date>
    </item>
    <item>
      <title>Re: Remove everything before backslash in string?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Remove-everything-before-backslash-in-string/m-p/576318#M47224</link>
      <description>&lt;P class="lia-align-left"&gt;Cheers mate. Happy Splunking!&lt;/P&gt;</description>
      <pubDate>Thu, 25 Nov 2021 12:39:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Remove-everything-before-backslash-in-string/m-p/576318#M47224</guid>
      <dc:creator>Gr0und_Z3r0</dc:creator>
      <dc:date>2021-11-25T12:39:46Z</dc:date>
    </item>
  </channel>
</rss>

