<?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 with winhostmon in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/SEDCMD-with-winhostmon/m-p/456756#M78940</link>
    <description>&lt;P&gt;To answer your questions:&lt;BR /&gt;
1. We have restarted after each change and waited for new data to come in&lt;BR /&gt;
2. It is a multiline event, we tested the command via CLI and that worked but it might not work in Splunk. &lt;BR /&gt;
3. We are running splunk 7.0.3 i though a eval only worked from 7.1 or 7.2 and up? But i like the idea so i will try to find a way to add something to see if the sourcetype is correct.&lt;/P&gt;

&lt;P&gt;Thank you for you comment!&lt;/P&gt;</description>
    <pubDate>Fri, 17 May 2019 05:15:24 GMT</pubDate>
    <dc:creator>MattibergB</dc:creator>
    <dc:date>2019-05-17T05:15:24Z</dc:date>
    <item>
      <title>SEDCMD with winhostmon</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/SEDCMD-with-winhostmon/m-p/456754#M78938</link>
      <description>&lt;P&gt;We are trying to mask some data from winhostmon using SEDCMD.&lt;/P&gt;

&lt;P&gt;The sample data sourcetype=WinHostMon  source=process   :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Type=Process
Name="wfcrun32.exe"
ProcessId=1
CommandLine="C:\PROGRAM FILES (X86)\Test\test.EXE" /h0 "C:\Program Files (x86)\Test2\test2.test" /username:"Test" /domain:AD /password:"test"
StartTime="20170516135737.278912+120"
Host="test-test2-test3"
Path="C:\PROGRAM FILES (X86)\Test\test.EXE"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Props:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[WinHostMon]
SEDCMD-anonymize=s/\/password.*$/\/password:XXXXX/g
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The issue is that it is not masking the data, i have tried sourcetype,source and host on the indexer but still its not masking.&lt;BR /&gt;
If i upload a test file with data using the add data option i am able to mask the data using the SEDCMD, same goes for a file with a static sourcetype.&lt;BR /&gt;
My guess is that the source/sourcetype is not correct because of the way Splunk identifies the data at indexing/parsing.&lt;/P&gt;

&lt;P&gt;Does anyone have an idea how i can mask the data at indexing time?&lt;BR /&gt;
The data is being send from a universal forwarder to our indexers so it is not passing through a heavy forwarder.&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2019 13:25:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/SEDCMD-with-winhostmon/m-p/456754#M78938</guid>
      <dc:creator>MattibergB</dc:creator>
      <dc:date>2019-05-16T13:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: SEDCMD with winhostmon</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/SEDCMD-with-winhostmon/m-p/456755#M78939</link>
      <description>&lt;P&gt;Your logic should work correctly.&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.2.6/Data/Anonymizedata"&gt;https://docs.splunk.com/Documentation/Splunk/7.2.6/Data/Anonymizedata&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Two things to double check&lt;BR /&gt;
1. Have you restarted your instance and pumped new data? as it will work from that point onwards and NOT on already indexed data&lt;BR /&gt;
2. Is the event above multiline or single line? (just to ensure if the .*$ reaches the end of line at all)&lt;BR /&gt;
3. Can you please put a EVAL statement under the stanza of props.conf. (eg EVAL-mykey="somevalue") This will ensure if sourcetype is correct and stanza name is valid&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2019 14:19:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/SEDCMD-with-winhostmon/m-p/456755#M78939</guid>
      <dc:creator>koshyk</dc:creator>
      <dc:date>2019-05-16T14:19:03Z</dc:date>
    </item>
    <item>
      <title>Re: SEDCMD with winhostmon</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/SEDCMD-with-winhostmon/m-p/456756#M78940</link>
      <description>&lt;P&gt;To answer your questions:&lt;BR /&gt;
1. We have restarted after each change and waited for new data to come in&lt;BR /&gt;
2. It is a multiline event, we tested the command via CLI and that worked but it might not work in Splunk. &lt;BR /&gt;
3. We are running splunk 7.0.3 i though a eval only worked from 7.1 or 7.2 and up? But i like the idea so i will try to find a way to add something to see if the sourcetype is correct.&lt;/P&gt;

&lt;P&gt;Thank you for you comment!&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2019 05:15:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/SEDCMD-with-winhostmon/m-p/456756#M78940</guid>
      <dc:creator>MattibergB</dc:creator>
      <dc:date>2019-05-17T05:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: SEDCMD with winhostmon</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/SEDCMD-with-winhostmon/m-p/456757#M78941</link>
      <description>&lt;P&gt;After changing the SEDCMD to the following it works, thank you for the multiline tip!&lt;BR /&gt;
s/(?m)\/password.*$/\/password:XXXXX/g&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2019 08:09:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/SEDCMD-with-winhostmon/m-p/456757#M78941</guid>
      <dc:creator>MattibergB</dc:creator>
      <dc:date>2019-05-21T08:09:56Z</dc:date>
    </item>
  </channel>
</rss>

