<?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: SEDCMD question in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/SEDCMD-question/m-p/161472#M32724</link>
    <description>&lt;P&gt;The &lt;CLASS&gt; part of the name is somewhat arbitrary, it could be anything, it doesn't have to be the field name.&lt;/CLASS&gt;&lt;/P&gt;

&lt;P&gt;If you want to change only the Asset_Title field in your events, you should do something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SEDCMD-title = s/Asset_Title=(MP)/Asset_Title=ZZ\1/g
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The ZZ will replace what's in the capture group (MP in this case).  You'll have to adjust the regex to match the values in the Asset_Title field, as I'm sure the above example won't quite do it.  If you want to post an example of your data, I can post a more accurate answer.&lt;/P&gt;</description>
    <pubDate>Mon, 02 Dec 2013 02:35:15 GMT</pubDate>
    <dc:creator>sbrant_splunk</dc:creator>
    <dc:date>2013-12-02T02:35:15Z</dc:date>
    <item>
      <title>SEDCMD question</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/SEDCMD-question/m-p/161471#M32723</link>
      <description>&lt;P&gt;I want to strip certain characters from my data on input.  It changes the _raw data, but not the search time extracted fields.  In particular I have a field 'Asset_Title' that I want to change certain chars in, so in props.conf I have&lt;/P&gt;

&lt;P&gt;SEDCMD-Asset_Title = s/MP/ZZ/g&lt;/P&gt;

&lt;P&gt;So, I see the raw data has all the MP changed to ZZ, but the field, 'Asset_Title' still shows the field with the MP.&lt;/P&gt;

&lt;P&gt;I don't understand that and I am also not sure what the &lt;CLASS&gt; part of SEDCMD is supposed to mean - i.e. Asset_Title above - what is the purpose of that?&lt;/CLASS&gt;&lt;/P&gt;

&lt;P&gt;Also, now search Asset_Title=M* shows the titles starting with M, but search Asset_Title=MP* finds no hits and search Asset_Title=ZZ* also finds no hits.  Uh???&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 15:23:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/SEDCMD-question/m-p/161471#M32723</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2020-09-28T15:23:38Z</dc:date>
    </item>
    <item>
      <title>Re: SEDCMD question</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/SEDCMD-question/m-p/161472#M32724</link>
      <description>&lt;P&gt;The &lt;CLASS&gt; part of the name is somewhat arbitrary, it could be anything, it doesn't have to be the field name.&lt;/CLASS&gt;&lt;/P&gt;

&lt;P&gt;If you want to change only the Asset_Title field in your events, you should do something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SEDCMD-title = s/Asset_Title=(MP)/Asset_Title=ZZ\1/g
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The ZZ will replace what's in the capture group (MP in this case).  You'll have to adjust the regex to match the values in the Asset_Title field, as I'm sure the above example won't quite do it.  If you want to post an example of your data, I can post a more accurate answer.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Dec 2013 02:35:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/SEDCMD-question/m-p/161472#M32724</guid>
      <dc:creator>sbrant_splunk</dc:creator>
      <dc:date>2013-12-02T02:35:15Z</dc:date>
    </item>
    <item>
      <title>Re: SEDCMD question</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/SEDCMD-question/m-p/161473#M32725</link>
      <description>&lt;P&gt;At the bottom is a line of data and what I am actually trying to do is replace any U+2018 or U+2019 chars with a 0x27.  The first Field is Asset_Title and contain Tap 'n Print, where the ' is U+2018, so my SEDCMD is&lt;/P&gt;

&lt;P&gt;SEDCMD-Asset_Title = s/(‘|’)/'/g&lt;/P&gt;

&lt;P&gt;I used MP and ZZ as a proof of concept. I guess I could probably use the y/‘’/''/&lt;/P&gt;

&lt;P&gt;Tap 'n Print,_scorm12_sppubknowledgera_o254ao,Custom Asset,username,FirstName,LastName,Vietnam,RVX125,0,2013-05-28,2013-07-22,41,0,,2013-07-22,Completed,,90.00,90.00,20,1670,Direct sales&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 15:23:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/SEDCMD-question/m-p/161473#M32725</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2020-09-28T15:23:41Z</dc:date>
    </item>
    <item>
      <title>Re: SEDCMD question</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/SEDCMD-question/m-p/161474#M32726</link>
      <description>&lt;P&gt;Yes, I think this syntax is probably best then:&lt;/P&gt;

&lt;P&gt;SEDCMD-&lt;CLASS&gt; = y/&lt;STRING1&gt;/&lt;STRING2&gt;/&lt;/STRING2&gt;&lt;/STRING1&gt;&lt;/CLASS&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Dec 2013 05:36:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/SEDCMD-question/m-p/161474#M32726</guid>
      <dc:creator>sbrant_splunk</dc:creator>
      <dc:date>2013-12-02T05:36:57Z</dc:date>
    </item>
  </channel>
</rss>

