<?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 Can I truncate my Windows logs? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Can-I-truncate-my-Windows-logs/m-p/303866#M93522</link>
    <description>&lt;P&gt;I am being asked if we can remove some the extraneous data from our Windows logs at indexing time. &lt;BR /&gt;
I remember in class the instructor talked about this, but I can't remember?&lt;/P&gt;</description>
    <pubDate>Fri, 12 Jan 2018 16:47:08 GMT</pubDate>
    <dc:creator>pfabrizi</dc:creator>
    <dc:date>2018-01-12T16:47:08Z</dc:date>
    <item>
      <title>Can I truncate my Windows logs?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-I-truncate-my-Windows-logs/m-p/303866#M93522</link>
      <description>&lt;P&gt;I am being asked if we can remove some the extraneous data from our Windows logs at indexing time. &lt;BR /&gt;
I remember in class the instructor talked about this, but I can't remember?&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2018 16:47:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-I-truncate-my-Windows-logs/m-p/303866#M93522</guid>
      <dc:creator>pfabrizi</dc:creator>
      <dc:date>2018-01-12T16:47:08Z</dc:date>
    </item>
    <item>
      <title>Re: Can I truncate my Windows logs?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-I-truncate-my-Windows-logs/m-p/303867#M93523</link>
      <description>&lt;P&gt;hey There is one way to i.e. &lt;CODE&gt;discard specific events and keep the rest&lt;/CODE&gt; using props.conf and transforms.conf&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Forwarding/Routeandfilterdatad#Discard_specific_events_and_keep_the_rest"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Forwarding/Routeandfilterdatad#Discard_specific_events_and_keep_the_rest&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;As from the doc above follow Steps:&lt;/P&gt;

&lt;P&gt;This example discards all sshd events in /var/log/messages by sending them to nullQueue:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;&lt;P&gt;In props.conf, set the TRANSFORMS-null attribute:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::/var/log/messages]
TRANSFORMS-null= setnull
&lt;/CODE&gt;&lt;/PRE&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Create a corresponding stanza in transforms.conf. Set DEST_KEY to "queue" and FORMAT to "nullQueue":&lt;/P&gt;

&lt;P&gt;[setnull]&lt;BR /&gt;
REGEX = [sshd]&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = nullQueue&lt;/P&gt;&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;3.Restart Splunk Enterprise.&lt;/P&gt;

&lt;P&gt;Let me know if this helps you!&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2018 16:55:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-I-truncate-my-Windows-logs/m-p/303867#M93523</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2018-01-12T16:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: Can I truncate my Windows logs?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-I-truncate-my-Windows-logs/m-p/303868#M93524</link>
      <description>&lt;P&gt;You sure can:&lt;BR /&gt;
Whitelisting and blacklisting is what you are looking for!&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/7.0.1/Admin/Inputsconf#Event_Log_whitelist_and_blacklist_formats"&gt;http://docs.splunk.com/Documentation/Splunk/7.0.1/Admin/Inputsconf#Event_Log_whitelist_and_blacklist_formats&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2018 16:58:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-I-truncate-my-Windows-logs/m-p/303868#M93524</guid>
      <dc:creator>nickhills</dc:creator>
      <dc:date>2018-01-12T16:58:16Z</dc:date>
    </item>
    <item>
      <title>Re: Can I truncate my Windows logs?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-I-truncate-my-Windows-logs/m-p/303869#M93525</link>
      <description>&lt;P&gt;Whilst this will work, this is not the most effective way to do this for windows logs - The windows event log input has a specific mechanism for dropping the large number of events windows produces, which prevents them being forwarded from the client - its far more efficient to drop them on the UF, than after they have crossed the network.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2018 17:01:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-I-truncate-my-Windows-logs/m-p/303869#M93525</guid>
      <dc:creator>nickhills</dc:creator>
      <dc:date>2018-01-12T17:01:12Z</dc:date>
    </item>
    <item>
      <title>Re: Can I truncate my Windows logs?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-I-truncate-my-Windows-logs/m-p/303870#M93526</link>
      <description>&lt;P&gt;You can use SECMD in props.conf on the indexer/heavy forwarder to remove some of the extra text in the logs. Here are some examples.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/44865/remove-out-section-of-log.html"&gt;https://answers.splunk.com/answers/44865/remove-out-section-of-log.html&lt;/A&gt;&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/4752/disabling-or-removing-extra-description-text-in-windows-2008-event-logs.html"&gt;https://answers.splunk.com/answers/4752/disabling-or-removing-extra-description-text-in-windows-2008-event-logs.html&lt;/A&gt;&lt;BR /&gt;
&lt;A href="https://gist.github.com/automine/5c8ef5b50e1df38249dfba01a70f2875"&gt;https://gist.github.com/automine/5c8ef5b50e1df38249dfba01a70f2875&lt;/A&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[WinEventLog:Security]
#Returns most of the space savings XML would provide
SEDCMD-clean0-null_sids = s/(?m)(^\s+[^:]+\:)\s+-?$/\1/g s/(?m)(^\s+[^:]+\:)\s+-?$/\1/g s/(?m)(\:)(\s+NULL SID)$/\1/g s/(?m)(ID\:)(\s+0x0)$/\1/g
SEDCMD-clean1-summary = s/This event is generated[\S\s\r\n]+$//g
SEDCMD-clean2-cert_summary = s/Certificate information is only[\S\s\r\n]+$//g
SEDCMD-clean3-blank_ipv6 = s/::ffff://g
SEDCMD-clean4-token_elevation_summary = s/Token Elevation Type indicates[\S\s\r\n]+$//g
SEDCMD-clean5-network_share_summary = s/(?ms)(A network share object was checked to see whether.*$)//g
SEDCMD-clean6-authentication_summary = s/(?ms)(The computer attempted to validate the credentials.*$)//g
SEDCMD-clean7-local_ipv6 = s/(?ms)(::1)//g

# Removed due to issue with Windows Filtering Platform events
# SEDCMD-clean8-firewall_summary = s/(?ms)(The Windows Filtering Platform has permitted.*$)//g
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 13 Jan 2018 16:07:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-I-truncate-my-Windows-logs/m-p/303870#M93526</guid>
      <dc:creator>spayneort</dc:creator>
      <dc:date>2018-01-13T16:07:00Z</dc:date>
    </item>
  </channel>
</rss>

