<?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: How to index .evt(x) files exported from a Windows system for Forensics/Root Cause Analysis/Incident Response etc when the system is no longer operational? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-index-evt-x-files-exported-from-a-Windows-system-for/m-p/419994#M73975</link>
    <description>&lt;P&gt;Solution: custom app &lt;A href="https://answers.splunk.comstorage/temp/271884-incident-response.zip"&gt;incident_response&lt;/A&gt;&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;Splunk Enterprise system with admin rights and an index called "incident" (this can be changed), a single stand alone free instance would be sufficient&lt;/LI&gt;
&lt;LI&gt;custom app with bin, local, and metadata directories and a README file&lt;/LI&gt;
&lt;LI&gt;batch script to covert files from .evt(x) to .txt&lt;/LI&gt;
&lt;LI&gt;input to ingest and index .txt files&lt;/LI&gt;
&lt;LI&gt;props for event breaking, field extraction, etc&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Directories structure:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;$SPLUNK_HOME/etc/apps/incident_response/ 
README.txt 
/bin/convevt.bat 
/local/app.conf 
/local/inputs.conf 
/local/props.conf 
/metadata/local.meta    
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;convevt.bat (pardon my windows...I'm better in *nix!):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;REM declare directory to event logs without trailing "\" 
REM set evtlogs="D:\directory\to\logs" 

set evtlogs="D:\ticket-123456\Logs" 

forfiles /P %evtlogs% /M *.evt* /C "cmd /c wevtutil qe @path /lf:true /f:Text &amp;gt; @path.txt"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;app.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[install] 
state = enabled
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;inputs.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;# declare directory to event logs in "incident_response\bin\convevt.bat" 
# enable script input 
[script://.\bin\convevt.bat] 
index = main 
sourcetype = script:output 
interval = -1 
#disabled = 0 
disabled = 1 

# declare directory to event logs with trailing "\*.txt" 
# declare hostname 
#[monitor://D:\directory\to\logs\*.txt] 
[monitor://D:\ticket-123456\Logs\*.txt] 
index = incident 
sourcetype = wevtutil:txt 
host = hostname 
disabled = 0 

# resart splunk 
# after first run disable script input and restart splunk
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[wevtutil:txt] 
ANNOTATE_PUNCT = false 
LINE_BREAKER = (Event\[\d+\]\:) 
SHOULD_LINEMERGE = false 
ADD_EXTRA_TIME_FIELDS = false 
TIME_PREFIX = Date\:\s+ 
MAX_DAYS_AGO = 10951 
KV_MODE = none 
EXTRACT-wevtutil_1 = Log\s+Name\:\s+(?[^\n]+) 
EXTRACT-wevtutil_2 = Source\:\s+(?[^\n]+) 
EXTRACT-wevtutil_3 = Event\s+ID\:\s+(?[^\n]+) 
EXTRACT-wevtutil_4 = Task\:\s+(?[^\n]+) 
EXTRACT-wevtutil_5 = Level\:\s+(?[^\n]+) 
EXTRACT-wevtutil_6 = Opcode\:\s+(?[^\n]+) 
EXTRACT-wevtutil_7 = Keyword\:\s+(?[^\n]+) 

################################ 
###ADD CUSTOM EXRACTIONS HERE### 
################################ 

#EXTRACT-wevtutil_# = regex
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;local.meta:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[] 
access = read : [ * ], write : [ admin ] 
export = system
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;README.txt:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;1 - declare directory to event logs in "bin\convevt.bat" 
2 - enable script input in "local\inputs.conf" 
3 - declare directory to event logs in "local\inputs.conf" 
4 - declare hostname in "local\inputs.conf" 
5 - restart splunk 
6 - after first run disable script input and restart splunk
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 18 Apr 2019 22:44:49 GMT</pubDate>
    <dc:creator>marycordova</dc:creator>
    <dc:date>2019-04-18T22:44:49Z</dc:date>
    <item>
      <title>How to index .evt(x) files exported from a Windows system for Forensics/Root Cause Analysis/Incident Response etc when the system is no longer operational?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-index-evt-x-files-exported-from-a-Windows-system-for/m-p/419993#M73974</link>
      <description>&lt;P&gt;Problem statement: Windows .evt(x) files need to be indexed but the system the files originated from is no longer operational and the normal methods for gathering Windows event logs will not work; Universal Forwarder, WEF, etc&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2019 22:38:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-index-evt-x-files-exported-from-a-Windows-system-for/m-p/419993#M73974</guid>
      <dc:creator>marycordova</dc:creator>
      <dc:date>2019-04-18T22:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to index .evt(x) files exported from a Windows system for Forensics/Root Cause Analysis/Incident Response etc when the system is no longer operational?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-index-evt-x-files-exported-from-a-Windows-system-for/m-p/419994#M73975</link>
      <description>&lt;P&gt;Solution: custom app &lt;A href="https://answers.splunk.comstorage/temp/271884-incident-response.zip"&gt;incident_response&lt;/A&gt;&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;Splunk Enterprise system with admin rights and an index called "incident" (this can be changed), a single stand alone free instance would be sufficient&lt;/LI&gt;
&lt;LI&gt;custom app with bin, local, and metadata directories and a README file&lt;/LI&gt;
&lt;LI&gt;batch script to covert files from .evt(x) to .txt&lt;/LI&gt;
&lt;LI&gt;input to ingest and index .txt files&lt;/LI&gt;
&lt;LI&gt;props for event breaking, field extraction, etc&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Directories structure:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;$SPLUNK_HOME/etc/apps/incident_response/ 
README.txt 
/bin/convevt.bat 
/local/app.conf 
/local/inputs.conf 
/local/props.conf 
/metadata/local.meta    
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;convevt.bat (pardon my windows...I'm better in *nix!):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;REM declare directory to event logs without trailing "\" 
REM set evtlogs="D:\directory\to\logs" 

set evtlogs="D:\ticket-123456\Logs" 

forfiles /P %evtlogs% /M *.evt* /C "cmd /c wevtutil qe @path /lf:true /f:Text &amp;gt; @path.txt"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;app.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[install] 
state = enabled
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;inputs.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;# declare directory to event logs in "incident_response\bin\convevt.bat" 
# enable script input 
[script://.\bin\convevt.bat] 
index = main 
sourcetype = script:output 
interval = -1 
#disabled = 0 
disabled = 1 

# declare directory to event logs with trailing "\*.txt" 
# declare hostname 
#[monitor://D:\directory\to\logs\*.txt] 
[monitor://D:\ticket-123456\Logs\*.txt] 
index = incident 
sourcetype = wevtutil:txt 
host = hostname 
disabled = 0 

# resart splunk 
# after first run disable script input and restart splunk
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[wevtutil:txt] 
ANNOTATE_PUNCT = false 
LINE_BREAKER = (Event\[\d+\]\:) 
SHOULD_LINEMERGE = false 
ADD_EXTRA_TIME_FIELDS = false 
TIME_PREFIX = Date\:\s+ 
MAX_DAYS_AGO = 10951 
KV_MODE = none 
EXTRACT-wevtutil_1 = Log\s+Name\:\s+(?[^\n]+) 
EXTRACT-wevtutil_2 = Source\:\s+(?[^\n]+) 
EXTRACT-wevtutil_3 = Event\s+ID\:\s+(?[^\n]+) 
EXTRACT-wevtutil_4 = Task\:\s+(?[^\n]+) 
EXTRACT-wevtutil_5 = Level\:\s+(?[^\n]+) 
EXTRACT-wevtutil_6 = Opcode\:\s+(?[^\n]+) 
EXTRACT-wevtutil_7 = Keyword\:\s+(?[^\n]+) 

################################ 
###ADD CUSTOM EXRACTIONS HERE### 
################################ 

#EXTRACT-wevtutil_# = regex
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;local.meta:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[] 
access = read : [ * ], write : [ admin ] 
export = system
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;README.txt:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;1 - declare directory to event logs in "bin\convevt.bat" 
2 - enable script input in "local\inputs.conf" 
3 - declare directory to event logs in "local\inputs.conf" 
4 - declare hostname in "local\inputs.conf" 
5 - restart splunk 
6 - after first run disable script input and restart splunk
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 18 Apr 2019 22:44:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-index-evt-x-files-exported-from-a-Windows-system-for/m-p/419994#M73975</guid>
      <dc:creator>marycordova</dc:creator>
      <dc:date>2019-04-18T22:44:49Z</dc:date>
    </item>
  </channel>
</rss>

