<?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: sed combined help in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/sed-combined-help/m-p/99400#M20791</link>
    <description>&lt;P&gt;Well, &lt;CODE&gt;sed&lt;/CODE&gt; supports the &lt;CODE&gt;y&lt;/CODE&gt; command (character substitution), but since there is not a 1-to-1 mapping, I don't think you can apply that here.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Rex"&gt;http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Rex&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0.2/Data/Anonymizedatausingconfigurationfiles#Through_a_sed_script"&gt;http://docs.splunk.com/Documentation/Splunk/5.0.2/Data/Anonymizedatausingconfigurationfiles#Through_a_sed_script&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;However, you can put all of your regexes into &lt;CODE&gt;props.conf SEDCMD&lt;/CODE&gt; statements, or through transforms, which would make the alteration permanent (may not be compatible with any requirements of keeping data in its original format, if you have such). &lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Admin/Propsconf"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Admin/Propsconf&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0.2/Data/Anonymizedatausingconfigurationfiles#Through_a_regex_transform"&gt;http://docs.splunk.com/Documentation/Splunk/5.0.2/Data/Anonymizedatausingconfigurationfiles#Through_a_regex_transform&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Hope this helps,&lt;/P&gt;

&lt;P&gt;Kristian&lt;/P&gt;</description>
    <pubDate>Thu, 18 Apr 2013 15:07:13 GMT</pubDate>
    <dc:creator>kristian_kolb</dc:creator>
    <dc:date>2013-04-18T15:07:13Z</dc:date>
    <item>
      <title>sed combined help</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/sed-combined-help/m-p/99399#M20790</link>
      <description>&lt;P&gt;I am using the following to clean up output:&lt;/P&gt;

&lt;P&gt;rex mode=sed field=search_google2 "s/\%20/ /g";"s/\%5B/[/g" | rex mode=sed field=search_google2 "s/\%22/\"/g"  | rex mode=sed field=search_google2 "s/\%5B/[/g"  | rex mode=sed field=search_google2 "s/\%5D/]/g"  | rex mode=sed field=search_google2 "s/\%2B/+/g"  | rex mode=sed field=search_google2 "s/\%2C/,/g"   | rex mode=sed field=search_google2 "s/\%3A/:/g"  | rex mode=sed field=search_google2 "s/\%27/'/g"  | rex mode=sed field=search_google2 "s/\%40/@/g"  | rex mode=sed field=search_google2 "s/\%3B/;/g"  | rex mode=sed field=search_google2 "s/\%25/%/g"&lt;/P&gt;

&lt;P&gt;I am new to regex....  can I combine the regex into one statement instead of the multiple pipes?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:45:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/sed-combined-help/m-p/99399#M20790</guid>
      <dc:creator>mcbradford</dc:creator>
      <dc:date>2020-09-28T13:45:34Z</dc:date>
    </item>
    <item>
      <title>Re: sed combined help</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/sed-combined-help/m-p/99400#M20791</link>
      <description>&lt;P&gt;Well, &lt;CODE&gt;sed&lt;/CODE&gt; supports the &lt;CODE&gt;y&lt;/CODE&gt; command (character substitution), but since there is not a 1-to-1 mapping, I don't think you can apply that here.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Rex"&gt;http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Rex&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0.2/Data/Anonymizedatausingconfigurationfiles#Through_a_sed_script"&gt;http://docs.splunk.com/Documentation/Splunk/5.0.2/Data/Anonymizedatausingconfigurationfiles#Through_a_sed_script&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;However, you can put all of your regexes into &lt;CODE&gt;props.conf SEDCMD&lt;/CODE&gt; statements, or through transforms, which would make the alteration permanent (may not be compatible with any requirements of keeping data in its original format, if you have such). &lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Admin/Propsconf"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Admin/Propsconf&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0.2/Data/Anonymizedatausingconfigurationfiles#Through_a_regex_transform"&gt;http://docs.splunk.com/Documentation/Splunk/5.0.2/Data/Anonymizedatausingconfigurationfiles#Through_a_regex_transform&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Hope this helps,&lt;/P&gt;

&lt;P&gt;Kristian&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2013 15:07:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/sed-combined-help/m-p/99400#M20791</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2013-04-18T15:07:13Z</dc:date>
    </item>
  </channel>
</rss>

