<?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: How to remove part of the string using rex in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-part-of-the-string-using-rex/m-p/550198#M91371</link>
    <description>&lt;P&gt;Sorry if the question was not clear.&lt;/P&gt;&lt;P&gt;my intention is to remove date and time fields from the below set of input.&lt;/P&gt;&lt;P&gt;let’s say the column xyz has below contents&lt;/P&gt;&lt;P&gt;abc -04/30, 08:14:07 - c&lt;/P&gt;&lt;P&gt;abc -04/28, 08:15:06 - c&lt;/P&gt;&lt;P&gt;abc -04/29, 08:12:09 - a&lt;/P&gt;&lt;P&gt;my result should be something like below only remove the date and time and display rest of the fields&amp;nbsp;&lt;/P&gt;&lt;P&gt;abc - - c&lt;/P&gt;&lt;P&gt;abc - - c&lt;/P&gt;&lt;P&gt;abc - - a&lt;/P&gt;</description>
    <pubDate>Mon, 03 May 2021 08:59:21 GMT</pubDate>
    <dc:creator>aaa2324</dc:creator>
    <dc:date>2021-05-03T08:59:21Z</dc:date>
    <item>
      <title>How to remove part of the string using rex</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-part-of-the-string-using-rex/m-p/550164#M91365</link>
      <description>&lt;P&gt;I have the below string and would like to remove the date and time part, please help with the query&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;*abc -04/30, 08:14:07 - c&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 May 2021 05:22:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-part-of-the-string-using-rex/m-p/550164#M91365</guid>
      <dc:creator>aaa2324</dc:creator>
      <dc:date>2021-05-03T05:22:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove part of the string using rex</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-part-of-the-string-using-rex/m-p/550166#M91366</link>
      <description>&lt;LI-CODE lang="markup"&gt;| makeresults
| eval _raw="abc -04/30, 08:14:07 - c"
| rex mode=sed "s/\-\d\d\/\d\d,\s\d\d:\d\d:\d\d\s/- /g"&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 03 May 2021 05:56:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-part-of-the-string-using-rex/m-p/550166#M91366</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-05-03T05:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove part of the string using rex</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-part-of-the-string-using-rex/m-p/550194#M91368</link>
      <description>&lt;P&gt;Thanks &amp;nbsp;however not getting the desired results, if the date and time are dynamic and keeps changing then please help with the complete query. I want to remove the date and time completely and show the results&amp;nbsp;&lt;/P&gt;&lt;P&gt;abc -04/30, 08:14:07 - c&lt;/P&gt;&lt;P&gt;abc -04/28, 08:15:06 - c&lt;/P&gt;&lt;P&gt;abc -04/29, 08:12:09 - a&lt;/P&gt;</description>
      <pubDate>Mon, 03 May 2021 08:18:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-part-of-the-string-using-rex/m-p/550194#M91368</guid>
      <dc:creator>aaa2324</dc:creator>
      <dc:date>2021-05-03T08:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove part of the string using rex</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-part-of-the-string-using-rex/m-p/550195#M91369</link>
      <description>&lt;P&gt;Please explain how the suggested rex does not do as you expected. It might be clearer if you provide some real anonymised events with which to work with.&lt;/P&gt;</description>
      <pubDate>Mon, 03 May 2021 08:35:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-part-of-the-string-using-rex/m-p/550195#M91369</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-05-03T08:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove part of the string using rex</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-part-of-the-string-using-rex/m-p/550198#M91371</link>
      <description>&lt;P&gt;Sorry if the question was not clear.&lt;/P&gt;&lt;P&gt;my intention is to remove date and time fields from the below set of input.&lt;/P&gt;&lt;P&gt;let’s say the column xyz has below contents&lt;/P&gt;&lt;P&gt;abc -04/30, 08:14:07 - c&lt;/P&gt;&lt;P&gt;abc -04/28, 08:15:06 - c&lt;/P&gt;&lt;P&gt;abc -04/29, 08:12:09 - a&lt;/P&gt;&lt;P&gt;my result should be something like below only remove the date and time and display rest of the fields&amp;nbsp;&lt;/P&gt;&lt;P&gt;abc - - c&lt;/P&gt;&lt;P&gt;abc - - c&lt;/P&gt;&lt;P&gt;abc - - a&lt;/P&gt;</description>
      <pubDate>Mon, 03 May 2021 08:59:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-part-of-the-string-using-rex/m-p/550198#M91371</guid>
      <dc:creator>aaa2324</dc:creator>
      <dc:date>2021-05-03T08:59:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove part of the string using rex</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-part-of-the-string-using-rex/m-p/550202#M91373</link>
      <description>&lt;LI-CODE lang="markup"&gt;| makeresults
| eval xyz="abc -04/30, 08:14:07 - c
abc -04/28, 08:15:06 - c
abc -04/29, 08:12:09 - a"
| rex field=xyz max_match=0 "(?&amp;lt;xyz&amp;gt;.*)\n*"
| mvexpand xyz
| rex mode=sed field=xyz "s/\-\d\d\/\d\d,\s\d\d:\d\d:\d\d\s/- /g"&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 03 May 2021 09:12:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-part-of-the-string-using-rex/m-p/550202#M91373</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-05-03T09:12:20Z</dc:date>
    </item>
  </channel>
</rss>

