<?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 Masking  credit card number and expiration date for a specific field using SEDCMD in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/Masking-credit-card-number-and-expiration-date-for-a-specific/m-p/675776#M18515</link>
    <description>&lt;P&gt;Would you kindly assist us in hiding the credit card number and expiration date for the following field some ab&lt;BR /&gt;&lt;BR /&gt;n required YES Accommodation [Bucharest] 5 Nights – Novotel Bucharest HDFC Master card number 1234 4567 0009 2321 Expiry Date of HDFC card 01/26 Any other relevant info Thanks and Regards, Murali. From&lt;/P&gt;</description>
    <pubDate>Mon, 29 Jan 2024 13:50:53 GMT</pubDate>
    <dc:creator>brahma9030</dc:creator>
    <dc:date>2024-01-29T13:50:53Z</dc:date>
    <item>
      <title>Masking  credit card number and expiration date for a specific field using SEDCMD</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Masking-credit-card-number-and-expiration-date-for-a-specific/m-p/675776#M18515</link>
      <description>&lt;P&gt;Would you kindly assist us in hiding the credit card number and expiration date for the following field some ab&lt;BR /&gt;&lt;BR /&gt;n required YES Accommodation [Bucharest] 5 Nights – Novotel Bucharest HDFC Master card number 1234 4567 0009 2321 Expiry Date of HDFC card 01/26 Any other relevant info Thanks and Regards, Murali. From&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2024 13:50:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Masking-credit-card-number-and-expiration-date-for-a-specific/m-p/675776#M18515</guid>
      <dc:creator>brahma9030</dc:creator>
      <dc:date>2024-01-29T13:50:53Z</dc:date>
    </item>
    <item>
      <title>Re: Masking  credit card number and expiration date for a specific field using SEDCMD</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Masking-credit-card-number-and-expiration-date-for-a-specific/m-p/675777#M18516</link>
      <description>&lt;P&gt;What have you tried so far and how did those attempts not meet expectations?&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2024 13:58:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Masking-credit-card-number-and-expiration-date-for-a-specific/m-p/675777#M18516</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2024-01-29T13:58:19Z</dc:date>
    </item>
    <item>
      <title>Re: Masking  credit card number and expiration date for a specific field using SEDCMD</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Masking-credit-card-number-and-expiration-date-for-a-specific/m-p/675780#M18519</link>
      <description>&lt;P&gt;I'm appreciative of your response. I tried the one below, but it contains more information than just the credit card number. I'm wondering how I can mask&amp;nbsp;the field value&amp;nbsp;contains the credit card number and expiration date along with some information in the field.&lt;BR /&gt;&lt;BR /&gt;Fieldname: abcd&lt;BR /&gt;field value :n required YES Accommodation [Bucharest] 5 Nights – Novotel Bucharest HDFC Master card number 1234 4567 0002 4786 Expiry Date of HDFC card 02/28 Any other relevant info Thanks and Regards, santhosh. From&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;SEDCMD-accmasking = s/abcd=(.)(\d{4}-){3}(\d{4})/cc=xxxx-xxxx-xxxx-\2/&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;But to be honest this&amp;nbsp; part in Splunk I am not bit confident. could you please help me&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2024 14:11:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Masking-credit-card-number-and-expiration-date-for-a-specific/m-p/675780#M18519</guid>
      <dc:creator>brahma9030</dc:creator>
      <dc:date>2024-01-29T14:11:46Z</dc:date>
    </item>
    <item>
      <title>Re: Masking  credit card number and expiration date for a specific field using SEDCMD</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Masking-credit-card-number-and-expiration-date-for-a-specific/m-p/675790#M18521</link>
      <description>&lt;P&gt;The cited &lt;FONT face="courier new,courier"&gt;SEDCMD&lt;/FONT&gt; is looking for the literal text "abcd=", which doesn't exist in the sample event.&amp;nbsp; Therefore, the card number will not be masked.&amp;nbsp; It's also looking for groups of 4 digits separated by hyphens, which also is not in the sample event.&amp;nbsp; &lt;FONT face="courier new,courier"&gt;SEDCMD&lt;/FONT&gt; looks at the raw event rather than&amp;nbsp; a specific field.&lt;/P&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SEDCMD=accmasking = s/card number \d{4} \d{4} \d{4} (\d{4})/card number xxxx xxxx xxxx \1/&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2024 15:55:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Masking-credit-card-number-and-expiration-date-for-a-specific/m-p/675790#M18521</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2024-01-29T15:55:33Z</dc:date>
    </item>
    <item>
      <title>Re: Masking  credit card number and expiration date for a specific field using SEDCMD</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Masking-credit-card-number-and-expiration-date-for-a-specific/m-p/675792#M18522</link>
      <description>&lt;P&gt;Actually the field abcd is already extracted but that field contains all the values including credit card number and expiry date example like below:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;abcd="n required YES Accommodation [Bucharest] 5 Nights – Novotel Bucharest HDFC Master card number 1234 4567 0002 4786 Expiry Date of HDFC card 02/28 Any other relevant info Thanks and Regards, santhosh. From"&lt;/P&gt;&lt;P&gt;abcd="n required YES Accommodation [Bucharest] 5 Nights – Novotel Bucharest HDFC Master card number 2345 3333 0012 0405 Expiry Date of HDFC card 06/29 Any other relevant info QATAR FARE IS INR 122645 /-ONWARD"&lt;/P&gt;&lt;P&gt;abcd="n required YES Accommodation [Bucharest] 6 Nights – Novotel Bucharest HDFC Master card number 2323 2324 0010 0600 Expiry Date of HDFC card 06/34 Any other relevant info [cid:image001.png@01DA4ACD.FF6"&lt;BR /&gt;&lt;BR /&gt;so the data already extracted in one field called abcd , so I want to mask credit card number except last 4 digits and expiry date.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2024 16:47:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Masking-credit-card-number-and-expiration-date-for-a-specific/m-p/675792#M18522</guid>
      <dc:creator>brahma9030</dc:creator>
      <dc:date>2024-01-29T16:47:35Z</dc:date>
    </item>
    <item>
      <title>Re: Masking  credit card number and expiration date for a specific field using SEDCMD</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Masking-credit-card-number-and-expiration-date-for-a-specific/m-p/675800#M18523</link>
      <description>&lt;P&gt;Thanks for the clarification, but the regex you provided still doesn't match the data.&amp;nbsp; Did you try the one I gave?&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2024 17:17:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Masking-credit-card-number-and-expiration-date-for-a-specific/m-p/675800#M18523</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2024-01-29T17:17:35Z</dc:date>
    </item>
    <item>
      <title>Re: Masking  credit card number and expiration date for a specific field using SEDCMD</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Masking-credit-card-number-and-expiration-date-for-a-specific/m-p/675805#M18525</link>
      <description>&lt;P&gt;yes I have tried this one like below but still it&amp;nbsp; is not masking the data.&lt;BR /&gt;&lt;BR /&gt;| rex field=abcd mode=sed "s/card number \d{4}\d{4}\d{4}(\d{4})/card number xxxx xxxx xxxx \1/"&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2024 17:32:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Masking-credit-card-number-and-expiration-date-for-a-specific/m-p/675805#M18525</guid>
      <dc:creator>brahma9030</dc:creator>
      <dc:date>2024-01-29T17:32:07Z</dc:date>
    </item>
    <item>
      <title>Re: Masking  credit card number and expiration date for a specific field using SEDCMD</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Masking-credit-card-number-and-expiration-date-for-a-specific/m-p/675811#M18526</link>
      <description>&lt;P&gt;That's not the same regex as the one I provided.&amp;nbsp; Spaces are significant. Here's a variation with more explicit spaces.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SEDCMD-accmasking = s/card number \d{4}\s\d{4}\s\d{4}\s(\d{4})/card number xxxx xxxx xxxx \1/&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2024 18:33:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Masking-credit-card-number-and-expiration-date-for-a-specific/m-p/675811#M18526</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2024-01-29T18:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: Masking  credit card number and expiration date for a specific field using SEDCMD</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Masking-credit-card-number-and-expiration-date-for-a-specific/m-p/675847#M18532</link>
      <description>&lt;P&gt;This is another that I tried, but it doesn't seem to be working.Will the masking apply to fields that have already been extracted during the search process?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2024 05:49:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Masking-credit-card-number-and-expiration-date-for-a-specific/m-p/675847#M18532</guid>
      <dc:creator>brahma9030</dc:creator>
      <dc:date>2024-01-30T05:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: Masking  credit card number and expiration date for a specific field using SEDCMD</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Masking-credit-card-number-and-expiration-date-for-a-specific/m-p/675898#M18538</link>
      <description>&lt;P&gt;&lt;FONT face="courier new,courier"&gt;SEDCMD&lt;/FONT&gt; applies at index time and only to new events.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2024 13:18:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Masking-credit-card-number-and-expiration-date-for-a-specific/m-p/675898#M18538</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2024-01-30T13:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: Masking  credit card number and expiration date for a specific field using SEDCMD</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Masking-credit-card-number-and-expiration-date-for-a-specific/m-p/675907#M18540</link>
      <description>&lt;P&gt;What do you mean by "the field abcd is already extracted"?&lt;/P&gt;&lt;P&gt;Remember that most of the fields you work with in Splunk are so called "search-time" extractions which means that they are extracted dynamically when you are searching and displaying the data while SEDCMD works in so called "index-time" which means _before_ the data is written to Splunk's indexes. SEDCMD as &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt; pointed out does not know anything about the search-time extracted fields so you can't rely on their values.&lt;/P&gt;&lt;P&gt;SEDCMD is a regex-based text substitution which works on the _raw data. There is no concept of field here whatsoever.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2024 13:46:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Masking-credit-card-number-and-expiration-date-for-a-specific/m-p/675907#M18540</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-01-30T13:46:03Z</dc:date>
    </item>
  </channel>
</rss>

