<?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 do you mask values using SEDCMD in payload emitted in the logs? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-mask-values-using-SEDCMD-in-payload-emitted-in-the/m-p/433864#M75815</link>
    <description>&lt;P&gt;Try this to eliminate the entire section (you might as well save the license cost, too):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SEDCMD-stripLastName = s/,"LastName":"[^"]+"//
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 30 Jan 2019 19:22:12 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2019-01-30T19:22:12Z</dc:date>
    <item>
      <title>How do you mask values using SEDCMD in payload emitted in the logs?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-mask-values-using-SEDCMD-in-payload-emitted-in-the/m-p/433862#M75813</link>
      <description>&lt;P&gt;I need help in masking data in the payload emitted in the log. The application writes logs to Windows Event logs - &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Message=[2019-01-29 07:00:24,706] {1302} INFO SomeHelper::SendToDestination - {"RefId":"78c2511d-5aa6-4b92-9a50-3622d62ac1a2","Lender":{"Id":"4be018e4-de81-4142-adf0-cfa3dd923c7c","FirstName":"SomeFirstName","LastName":"SomeLastName","Quailification":false,"ID":"4be018e4-de81-4142-adf0-cfa3dd923c7c"}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have tried the following SEDCMD in props.conf , but it masks all the fields after the "LastName" in payload in the EventLog. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SEDCMD-ananlname = s/("LastName":".*"/"LastName":"*****"/
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 30 Jan 2019 19:05:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-you-mask-values-using-SEDCMD-in-payload-emitted-in-the/m-p/433862#M75813</guid>
      <dc:creator>nmohammed</dc:creator>
      <dc:date>2019-01-30T19:05:47Z</dc:date>
    </item>
    <item>
      <title>Re: How do you mask values using SEDCMD in payload emitted in the logs?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-mask-values-using-SEDCMD-in-payload-emitted-in-the/m-p/433863#M75814</link>
      <description>&lt;P&gt;Hi @nmohammed &lt;/P&gt;

&lt;P&gt;This sedcmd should work better for you: &lt;CODE&gt;SEDCMD-ananlname = s/"LastName":"[^\"]*"/"LastName":""/&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;The main change is that instead of using &lt;CODE&gt;.*&lt;/CODE&gt; (which means capture everything to the end of the line) I am instead using &lt;CODE&gt;[^\"]*&lt;/CODE&gt; (which means capture everything until you reach a double quote)&lt;/P&gt;

&lt;P&gt;Good luck&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jan 2019 19:10:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-you-mask-values-using-SEDCMD-in-payload-emitted-in-the/m-p/433863#M75814</guid>
      <dc:creator>chrisyounger</dc:creator>
      <dc:date>2019-01-30T19:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: How do you mask values using SEDCMD in payload emitted in the logs?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-mask-values-using-SEDCMD-in-payload-emitted-in-the/m-p/433864#M75815</link>
      <description>&lt;P&gt;Try this to eliminate the entire section (you might as well save the license cost, too):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SEDCMD-stripLastName = s/,"LastName":"[^"]+"//
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 30 Jan 2019 19:22:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-you-mask-values-using-SEDCMD-in-payload-emitted-in-the/m-p/433864#M75815</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-01-30T19:22:12Z</dc:date>
    </item>
  </channel>
</rss>

