<?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 Apply SEDCMD to mutli line events in props.conf with recurring field values in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Apply-SEDCMD-to-mutli-line-events-in-props-conf-with-recurring/m-p/171192#M34557</link>
    <description>&lt;P&gt;Hello Experts,&lt;/P&gt;

&lt;P&gt;I have been asked to hash out one occurrence of value_key from the following logs. I have tried the following in props.conf on indexer&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[default]
SEDCMD-hash = s/value_key:(\S+), code_key:PASSWORD/XXXXXX/g
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and restarted splunk and instead of hiding it, it deleted all the events that contained value_key. When i try the same in search i get what i want&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;*****15 lines *******
[value_key:xyzabcd.click.net, code_key:USER_NAME]
        [value_key:**needtohidethispassword**, code_key:PASSWORD]
        [value_key:BHN-1click, code_key:DOMAIN]
        [value_key:46793, code_key:PORT_NUMBER]
        [value_key:1.2.3.4, code_key:ISG_IP]
        [value_key:ISG, code_key:type]
*****15 Lines*********
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I know it has to be index time extraction only. Do i need a corresponding transforms.conf to define the class or can i acheive it solely using props.conf? if so, could you please provide syntax/tips?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Raghav&lt;/P&gt;</description>
    <pubDate>Mon, 09 Mar 2015 14:52:43 GMT</pubDate>
    <dc:creator>Raghav2384</dc:creator>
    <dc:date>2015-03-09T14:52:43Z</dc:date>
    <item>
      <title>Apply SEDCMD to mutli line events in props.conf with recurring field values</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Apply-SEDCMD-to-mutli-line-events-in-props-conf-with-recurring/m-p/171192#M34557</link>
      <description>&lt;P&gt;Hello Experts,&lt;/P&gt;

&lt;P&gt;I have been asked to hash out one occurrence of value_key from the following logs. I have tried the following in props.conf on indexer&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[default]
SEDCMD-hash = s/value_key:(\S+), code_key:PASSWORD/XXXXXX/g
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and restarted splunk and instead of hiding it, it deleted all the events that contained value_key. When i try the same in search i get what i want&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;*****15 lines *******
[value_key:xyzabcd.click.net, code_key:USER_NAME]
        [value_key:**needtohidethispassword**, code_key:PASSWORD]
        [value_key:BHN-1click, code_key:DOMAIN]
        [value_key:46793, code_key:PORT_NUMBER]
        [value_key:1.2.3.4, code_key:ISG_IP]
        [value_key:ISG, code_key:type]
*****15 Lines*********
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I know it has to be index time extraction only. Do i need a corresponding transforms.conf to define the class or can i acheive it solely using props.conf? if so, could you please provide syntax/tips?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Raghav&lt;/P&gt;</description>
      <pubDate>Mon, 09 Mar 2015 14:52:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Apply-SEDCMD-to-mutli-line-events-in-props-conf-with-recurring/m-p/171192#M34557</guid>
      <dc:creator>Raghav2384</dc:creator>
      <dc:date>2015-03-09T14:52:43Z</dc:date>
    </item>
    <item>
      <title>Re: Apply SEDCMD to mutli line events in props.conf with recurring field values</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Apply-SEDCMD-to-mutli-line-events-in-props-conf-with-recurring/m-p/171193#M34558</link>
      <description>&lt;P&gt;Do you want this to happen for all sourcetypes OR one particular sourcetype (asking as you created this entry in [default] stanza)?&lt;/P&gt;</description>
      <pubDate>Mon, 09 Mar 2015 20:11:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Apply-SEDCMD-to-mutli-line-events-in-props-conf-with-recurring/m-p/171193#M34558</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2015-03-09T20:11:33Z</dc:date>
    </item>
    <item>
      <title>Re: Apply SEDCMD to mutli line events in props.conf with recurring field values</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Apply-SEDCMD-to-mutli-line-events-in-props-conf-with-recurring/m-p/171194#M34559</link>
      <description>&lt;P&gt;I tried&lt;BR /&gt;
[Sourcetype]&lt;BR /&gt;
Sedcmd-xyz = s/regex/####/g and no luck.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Mar 2015 21:04:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Apply-SEDCMD-to-mutli-line-events-in-props-conf-with-recurring/m-p/171194#M34559</guid>
      <dc:creator>Raghav2384</dc:creator>
      <dc:date>2015-03-09T21:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: Apply SEDCMD to mutli line events in props.conf with recurring field values</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Apply-SEDCMD-to-mutli-line-events-in-props-conf-with-recurring/m-p/171195#M34560</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;could you test this :&lt;/P&gt;

&lt;P&gt;SEDCMD-hash = s/(.&lt;EM&gt;value_key:)([^\,]+)(, code_key:PASSWORD.&lt;/EM&gt;)/\1XXXXXX\3/g&lt;/P&gt;

&lt;P&gt;I hope it will help you&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 19:08:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Apply-SEDCMD-to-mutli-line-events-in-props-conf-with-recurring/m-p/171195#M34560</guid>
      <dc:creator>ludoz13</dc:creator>
      <dc:date>2020-09-28T19:08:38Z</dc:date>
    </item>
    <item>
      <title>Re: Apply SEDCMD to mutli line events in props.conf with recurring field values</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Apply-SEDCMD-to-mutli-line-events-in-props-conf-with-recurring/m-p/171196#M34561</link>
      <description>&lt;P&gt;I got the same result as using &lt;/P&gt;

&lt;P&gt;SEDCMD-hash = s/value_key:(\S+), code_key:PASSWORD/XXXXXX/g. Instead of &lt;/P&gt;

&lt;P&gt;value_key:XXXXXX, code_key:PASSWORD , it replaces the whole line with [XXXXXX]. It started to make sense as this is happening at index time before the event boundaries are marked, or i might have missed the point totally.&lt;/P&gt;

&lt;P&gt;Appreciate your help.&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Raghav&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 19:08:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Apply-SEDCMD-to-mutli-line-events-in-props-conf-with-recurring/m-p/171196#M34561</guid>
      <dc:creator>Raghav2384</dc:creator>
      <dc:date>2020-09-28T19:08:49Z</dc:date>
    </item>
  </channel>
</rss>

