<?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 WEF .conf files in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/WEF-conf-files/m-p/693904#M115323</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;in our organization we use wef to monitor windows.&lt;/P&gt;
&lt;P&gt;we configure an inputs.conf for monitoring from the Event viewer.&lt;/P&gt;
&lt;P&gt;the powershell events (mainly event code 800 and 4103) logs received too long and we want to cut duplicated data.&lt;/P&gt;
&lt;P&gt;we tried various test with props.conf and transforms.conf and nothing works, here some of our stanzas we tried in props.conf&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[source::"XmlWinEventLog:Windows PowerShell"]
SEDCMD-CLean_powershell_800 = s/s/\n\s+Context\sInformation\:.*([\r\n]+.*){0,500}////g
SEDCMD-CLean_powershell_4103 = s/s/\s+Context\:.*([\r\n]+.*){0,500}////g


[source::XmlWinEventLog:Microsoft-Windows-PowerShell/Operational]
SEDCMD-CLean_powershell_800 = s/s/\n\s+Context\sInformation\:.*([\r\n]+.*){0,500}////g
SEDCMD-CLean_powershell_4103 = s/s/\s+Context\:.*([\r\n]+.*){0,500}////g


[WinEventLog://Microsoft-Windows-PowerShell/Operational]
SEDCMD-CLean_powershell_800 = s/s/\n\s+Context\sInformation\:.*([\r\n]+.*){0,500}////g
SEDCMD-CLean_powershell_4103 = s/s/\s+Context\:.*([\r\n]+.*){0,500}////g&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;also i wanted to make sure the inputs.conf stanza for powershell is correctly when i used :&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;renderXml = true&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;over:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;wec_event_format = rendered_event&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 23 Jul 2024 12:13:48 GMT</pubDate>
    <dc:creator>Gil</dc:creator>
    <dc:date>2024-07-23T12:13:48Z</dc:date>
    <item>
      <title>WEF .conf files</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/WEF-conf-files/m-p/693904#M115323</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;in our organization we use wef to monitor windows.&lt;/P&gt;
&lt;P&gt;we configure an inputs.conf for monitoring from the Event viewer.&lt;/P&gt;
&lt;P&gt;the powershell events (mainly event code 800 and 4103) logs received too long and we want to cut duplicated data.&lt;/P&gt;
&lt;P&gt;we tried various test with props.conf and transforms.conf and nothing works, here some of our stanzas we tried in props.conf&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[source::"XmlWinEventLog:Windows PowerShell"]
SEDCMD-CLean_powershell_800 = s/s/\n\s+Context\sInformation\:.*([\r\n]+.*){0,500}////g
SEDCMD-CLean_powershell_4103 = s/s/\s+Context\:.*([\r\n]+.*){0,500}////g


[source::XmlWinEventLog:Microsoft-Windows-PowerShell/Operational]
SEDCMD-CLean_powershell_800 = s/s/\n\s+Context\sInformation\:.*([\r\n]+.*){0,500}////g
SEDCMD-CLean_powershell_4103 = s/s/\s+Context\:.*([\r\n]+.*){0,500}////g


[WinEventLog://Microsoft-Windows-PowerShell/Operational]
SEDCMD-CLean_powershell_800 = s/s/\n\s+Context\sInformation\:.*([\r\n]+.*){0,500}////g
SEDCMD-CLean_powershell_4103 = s/s/\s+Context\:.*([\r\n]+.*){0,500}////g&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;also i wanted to make sure the inputs.conf stanza for powershell is correctly when i used :&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;renderXml = true&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;over:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;wec_event_format = rendered_event&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 23 Jul 2024 12:13:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/WEF-conf-files/m-p/693904#M115323</guid>
      <dc:creator>Gil</dc:creator>
      <dc:date>2024-07-23T12:13:48Z</dc:date>
    </item>
    <item>
      <title>Re: WEF .conf files</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/WEF-conf-files/m-p/693910#M115324</link>
      <description>&lt;P&gt;I see a few issues, but don't know that fixing them will solve the problem.&lt;/P&gt;&lt;P&gt;1. All of the &lt;FONT face="courier new,courier"&gt;sed&lt;/FONT&gt; commands are malformed.&amp;nbsp; There should be a single "&lt;FONT face="courier new,courier"&gt;s/&lt;/FONT&gt;" at the beginning and only 2 slashes before the final 'g'.&lt;/P&gt;&lt;P&gt;2: I'm not sure quotation marks are allowed in a stanza name.&lt;/P&gt;&lt;P&gt;3. "WinEventLog://" is a prefix for inputs.conf stanzas, not for props.conf.&lt;/P&gt;&lt;P&gt;4. Have you tried using a sourcetype name in the props.conf stanza rather than a source name?&lt;/P&gt;&lt;P&gt;It would help to see some sample events and to know which parts of the events you wish to remove.&lt;/P&gt;&lt;P&gt;If you want someone to confirm the inputs.conf stanza then you'll need to show the inputs.conf stanza.&lt;/P&gt;</description>
      <pubDate>Sun, 21 Jul 2024 14:06:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/WEF-conf-files/m-p/693910#M115324</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2024-07-21T14:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: WEF .conf files</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/WEF-conf-files/m-p/694043#M115334</link>
      <description>&lt;P&gt;your suggestion didn't help unfortunately ,&lt;BR /&gt;this is an example for a log, I need to cut all the data after "Context Information" (include)&lt;/P&gt;&lt;P&gt;attachment is added.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2024 09:18:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/WEF-conf-files/m-p/694043#M115334</guid>
      <dc:creator>Gil</dc:creator>
      <dc:date>2024-07-23T09:18:05Z</dc:date>
    </item>
    <item>
      <title>Re: WEF .conf files</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/WEF-conf-files/m-p/694049#M115336</link>
      <description>&lt;P&gt;Which of the 4 suggestions did you try?&amp;nbsp; Did none of them help?&lt;/P&gt;&lt;P&gt;It would help to have the event in text rather than as an image since it's impossible to put an image in regex101.com for testing.&amp;nbsp; Try this untested prop&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[mysourcetype]
SEDCMD-noContext = s/Context Information:.*/Context Information:/g&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 23 Jul 2024 12:05:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/WEF-conf-files/m-p/694049#M115336</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2024-07-23T12:05:05Z</dc:date>
    </item>
    <item>
      <title>Re: WEF .conf files</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/WEF-conf-files/m-p/694060#M115338</link>
      <description>&lt;P&gt;we found something else that helped us.&lt;/P&gt;&lt;P&gt;but thanks for your help!&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2024 13:47:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/WEF-conf-files/m-p/694060#M115338</guid>
      <dc:creator>Gil</dc:creator>
      <dc:date>2024-07-23T13:47:45Z</dc:date>
    </item>
    <item>
      <title>Re: WEF .conf files</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/WEF-conf-files/m-p/694099#M115343</link>
      <description>&lt;P&gt;It would be nice if you wrote what solved your problem.&lt;/P&gt;&lt;P&gt;My suspicion is that either you had your setting on a wrong component or you referenced wrong source (with WEF-forwarded events the addon does rewrite of the source from the ForwardedEvents eventlog to the original eventlog the event was forwarded fron)&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2024 20:40:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/WEF-conf-files/m-p/694099#M115343</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-07-23T20:40:18Z</dc:date>
    </item>
    <item>
      <title>Re: WEF .conf files</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/WEF-conf-files/m-p/694128#M115350</link>
      <description>&lt;P&gt;as mention we drop one of the "s/" and also the "g" at the end:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;SEDCMD-CLean_powershell_800 = s/\n\s+Context Information\:.*([\r\n]+.*){0,500}//
SEDCMD-CLean_powershell_4103 = s/\s+Context\:.*([\r\n]+.*){0,500}//&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 24 Jul 2024 12:23:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/WEF-conf-files/m-p/694128#M115350</guid>
      <dc:creator>Gil</dc:creator>
      <dc:date>2024-07-24T12:23:32Z</dc:date>
    </item>
    <item>
      <title>Re: WEF .conf files</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/WEF-conf-files/m-p/694193#M115356</link>
      <description>&lt;P&gt;So you didn't "find something else that helped".&amp;nbsp; You used my answer.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2024 12:18:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/WEF-conf-files/m-p/694193#M115356</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2024-07-24T12:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: WEF .conf files</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/WEF-conf-files/m-p/694281#M115364</link>
      <description>&lt;P&gt;you didn't say to drop the "g" at the end.&lt;/P&gt;&lt;P&gt;of course your suggestion helped but not fully.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2024 10:19:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/WEF-conf-files/m-p/694281#M115364</guid>
      <dc:creator>Gil</dc:creator>
      <dc:date>2024-07-25T10:19:55Z</dc:date>
    </item>
  </channel>
</rss>

