<?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 Eventlog in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/sedcmd-with-Eventlog/m-p/388989#M69622</link>
    <description>&lt;P&gt;What exactly is your goal? Which part of the message do you want to remove?&lt;/P&gt;

&lt;P&gt;Looking at regex101 with your data and regex, it indeed matches everything except that single T: &lt;A href="https://regex101.com/r/BoyXLF/1"&gt;https://regex101.com/r/BoyXLF/1&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Looks like your way of using that negative lookahead is incorrect for what you want to accomplish.&lt;/P&gt;</description>
    <pubDate>Tue, 31 Jul 2018 11:34:51 GMT</pubDate>
    <dc:creator>FrankVl</dc:creator>
    <dc:date>2018-07-31T11:34:51Z</dc:date>
    <item>
      <title>sedcmd with Eventlog</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/sedcmd-with-Eventlog/m-p/388988#M69621</link>
      <description>&lt;P&gt;I want to remove lot of rows in windows eventlog. &lt;/P&gt;

&lt;P&gt;I tested it on EventCode=4624 - successful login&lt;/P&gt;

&lt;P&gt;02/01/2018 09:56:03 AM&lt;BR /&gt;
LogName=Security&lt;BR /&gt;
SourceName=Microsoft Windows security auditing.&lt;BR /&gt;
EventCode=4624&lt;BR /&gt;
EventType=0&lt;BR /&gt;
Type=Information&lt;BR /&gt;
ComputerName=COMPUTER1&lt;BR /&gt;
TaskCategory=Logon&lt;BR /&gt;
OpCode=Info&lt;BR /&gt;
RecordNumber=1072237543&lt;BR /&gt;
Keywords=Audit Success ...&lt;/P&gt;

&lt;P&gt;but I cannot get it working. I want to use SEDCMD, but before that I tried in search with rex command in sed mode, but something like that:&lt;/P&gt;

&lt;P&gt;rex mode=sed "s/(?!Type=\w+).+//g"&lt;/P&gt;

&lt;P&gt;got me only one letter "T" as below:&lt;/P&gt;

&lt;P&gt;T&lt;/P&gt;

&lt;P&gt;What I am doing wrong?&lt;/P&gt;

&lt;P&gt;Maybe I should use transforms instead?&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jul 2018 10:40:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/sedcmd-with-Eventlog/m-p/388988#M69621</guid>
      <dc:creator>akuzma_2</dc:creator>
      <dc:date>2018-07-31T10:40:18Z</dc:date>
    </item>
    <item>
      <title>Re: sedcmd with Eventlog</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/sedcmd-with-Eventlog/m-p/388989#M69622</link>
      <description>&lt;P&gt;What exactly is your goal? Which part of the message do you want to remove?&lt;/P&gt;

&lt;P&gt;Looking at regex101 with your data and regex, it indeed matches everything except that single T: &lt;A href="https://regex101.com/r/BoyXLF/1"&gt;https://regex101.com/r/BoyXLF/1&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Looks like your way of using that negative lookahead is incorrect for what you want to accomplish.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jul 2018 11:34:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/sedcmd-with-Eventlog/m-p/388989#M69622</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2018-07-31T11:34:51Z</dc:date>
    </item>
    <item>
      <title>Re: sedcmd with Eventlog</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/sedcmd-with-Eventlog/m-p/388990#M69623</link>
      <description>&lt;P&gt;I found that it's incorrect, but I does not know how to make it right. &lt;/P&gt;

&lt;P&gt;My goal is to remove almost all fields and leave only 3-4 I need.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jul 2018 11:44:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/sedcmd-with-Eventlog/m-p/388990#M69623</guid>
      <dc:creator>akuzma_2</dc:creator>
      <dc:date>2018-07-31T11:44:00Z</dc:date>
    </item>
    <item>
      <title>Re: sedcmd with Eventlog</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/sedcmd-with-Eventlog/m-p/388991#M69624</link>
      <description>&lt;P&gt;If you tell us which fields you want to remove and which you want to keep, we can help you, but if we don't know what exactly you want to remove, it is impossible to suggest another regex.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jul 2018 12:12:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/sedcmd-with-Eventlog/m-p/388991#M69624</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2018-07-31T12:12:58Z</dc:date>
    </item>
  </channel>
</rss>

