<?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 can I ingest windows logs that were backed up in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-ingest-windows-logs-that-were-backed-up/m-p/558828#M92445</link>
    <description>&lt;P&gt;Yes you need to automate it otherwise its hard. All the best.&lt;/P&gt;</description>
    <pubDate>Fri, 09 Jul 2021 12:00:03 GMT</pubDate>
    <dc:creator>venkatasri</dc:creator>
    <dc:date>2021-07-09T12:00:03Z</dc:date>
    <item>
      <title>How can I ingest windows logs that were backed up</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-ingest-windows-logs-that-were-backed-up/m-p/558753#M92429</link>
      <description>&lt;P&gt;Prior to a customer getting splunk, they 7-zipped there logs and copied them to a server.&amp;nbsp; I just got them a brand new Splunk 8.2.1 enterprise system stood up with awesome dashboards.&amp;nbsp; &amp;nbsp; Now the customer is asking if I can import there archived .evtx files.&amp;nbsp; Do we do this by just putitng them in a folder and using monitor to point at them?&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jul 2021 19:48:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-ingest-windows-logs-that-were-backed-up/m-p/558753#M92429</guid>
      <dc:creator>Funderburg78</dc:creator>
      <dc:date>2021-07-08T19:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: How can I ingest windows logs that were backed up</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-ingest-windows-logs-that-were-backed-up/m-p/558783#M92433</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/207570"&gt;@Funderburg78&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Splunk forwarder can unzip the archive files and ingest them, if unpacked file is non-binary. As you said you have to set-up inputs.conf monitor stanza on UF and give a try.&lt;/P&gt;&lt;P&gt;---&lt;/P&gt;&lt;DIV class="lia-message-body lia-component-message-view-widget-body lia-component-body-signature-highlight-escalation lia-component-message-view-widget-body-signature-highlight-escalation"&gt;&lt;DIV class="lia-message-body-content"&gt;&lt;P&gt;An upvote would be appreciated and Accept solution if this reply helps!&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 09 Jul 2021 03:25:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-ingest-windows-logs-that-were-backed-up/m-p/558783#M92433</guid>
      <dc:creator>venkatasri</dc:creator>
      <dc:date>2021-07-09T03:25:06Z</dc:date>
    </item>
    <item>
      <title>Re: How can I ingest windows logs that were backed up</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-ingest-windows-logs-that-were-backed-up/m-p/558818#M92441</link>
      <description>&lt;P&gt;I have unzipped the logs already to a directory C:\EventLogs\Restore.&amp;nbsp; It is literally 50+ evtx files.&amp;nbsp; The monitor://C:\EventLogs\Restore\* does not appear to be working.&amp;nbsp; Normally with Windows logs you need to use the wineventlog:// tool, however, it makes a conenction to a channel to monitor the channel.&amp;nbsp; Since these are not in a channel it will not work.&amp;nbsp; Since they are evtx files I am not sure the monitor:// can actually read it.&amp;nbsp; If they were .csv or .log&amp;nbsp; I am sure monitor:// would work fine.&amp;nbsp; I was wondering if there is something Splunk has to tackle this challenge.&amp;nbsp; I really do not want to mount them all manually and convert them to csv files manually.&amp;nbsp; that would take forever...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EDIT: I cannot be the only person to install splunk and have there customer want to ingest old backed up evtx files....&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jul 2021 11:17:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-ingest-windows-logs-that-were-backed-up/m-p/558818#M92441</guid>
      <dc:creator>Funderburg78</dc:creator>
      <dc:date>2021-07-09T11:17:26Z</dc:date>
    </item>
    <item>
      <title>Re: How can I ingest windows logs that were backed up</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-ingest-windows-logs-that-were-backed-up/m-p/558823#M92443</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/207570"&gt;@Funderburg78&lt;/a&gt;&amp;nbsp; As i mentioned Splunk can not read binary formats even though enforce it to read they won't be readable. wiki says -&amp;nbsp; "&lt;SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;EVTX File Extension - What is an .evtx file and how do I open it? What is an EVTX file? Log file created by the Windows 7 Event Viewer; contains a list of events recorded by Windows; saved in a proprietary binary format that can only be viewed within the Event Viewer program&lt;/STRONG&gt;&lt;/EM&gt;. "&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hence you shall export them to CSV or other text formats then ingest using UF.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;---&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;An upvote would&amp;nbsp; appreciated and Accept solution&amp;nbsp; if this reply helps!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jul 2021 11:21:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-ingest-windows-logs-that-were-backed-up/m-p/558823#M92443</guid>
      <dc:creator>venkatasri</dc:creator>
      <dc:date>2021-07-09T11:21:41Z</dc:date>
    </item>
    <item>
      <title>Re: How can I ingest windows logs that were backed up</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-ingest-windows-logs-that-were-backed-up/m-p/558827#M92444</link>
      <description>&lt;P&gt;Looks like I need to use a powershell script or logparser to do the conversion.&amp;nbsp; I found some stuff on the internet to help with this for those who may have this issue in the future!&lt;/P&gt;&lt;P&gt;Convert evtx Files:&lt;/P&gt;&lt;P&gt;Powershell Try:&lt;/P&gt;&lt;P&gt;$a = Get-Item *.evtx&lt;/P&gt;&lt;P&gt;$output_file = [System.IO.StreamWriter] $("all.csv")&lt;/P&gt;&lt;P&gt;foreach($file in $a){&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $events = get-winevent -path $file.FullName&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; foreach ($Event in $events) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $xml = [xml]($Event.ToXml())&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; foreach ($s in $xml.Event.System.ChildNodes) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $output_file.Write($s.Name + ":" + $s.InnerText + ",")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; foreach ($d in $xml.Event.EventData.Data) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $text = $d.InnerText&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;$text = if ($text) { $text.replace("`n","") } else { $text }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $output_file.Write($d.Name + ":" + $text + ",")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $output_file.WriteLine()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$output_file.Flush()&lt;/P&gt;&lt;P&gt;$output_file.Close()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LogParser: (Download from Microsoft.com)&lt;/P&gt;&lt;P&gt;$logparser = "c:\program files (x86)\Log Parser 2.2\logparser.exe"$query = "SELECT * INTO c:\logs\logs.csv FROM c:\logs\logs.evtx"&amp;nbsp;&amp;amp; $logparser -i:evt -o:csv $query&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have not actually tried this yet, but will be giving it a shot in the near future, I expect some tweaking to the scripting may need to be required.&lt;/P&gt;&lt;P&gt;EDIT:&amp;nbsp; Links for reference:&lt;/P&gt;&lt;P&gt;&lt;A href="https://serverfault.com/questions/783708/convert-saved-evtx-files-to-text" target="_blank"&gt;https://serverfault.com/questions/783708/convert-saved-evtx-files-to-text&lt;/A&gt;&lt;/P&gt;&lt;P&gt;LogParser Download location:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.microsoft.com/en-us/download/details.aspx?id=24659" target="_blank"&gt;https://www.microsoft.com/en-us/download/details.aspx?id=24659&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jul 2021 12:00:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-ingest-windows-logs-that-were-backed-up/m-p/558827#M92444</guid>
      <dc:creator>Funderburg78</dc:creator>
      <dc:date>2021-07-09T12:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: How can I ingest windows logs that were backed up</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-ingest-windows-logs-that-were-backed-up/m-p/558828#M92445</link>
      <description>&lt;P&gt;Yes you need to automate it otherwise its hard. All the best.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jul 2021 12:00:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-ingest-windows-logs-that-were-backed-up/m-p/558828#M92445</guid>
      <dc:creator>venkatasri</dc:creator>
      <dc:date>2021-07-09T12:00:03Z</dc:date>
    </item>
  </channel>
</rss>

