# Importing Results Into Elastic Stack ## Start an elastic stack distribution Hayabusa results can easily be imported into Elastic Stack. We recommend using [SOF-ELK](https://github.com/philhagen/sof-elk/blob/main/VM_README.md), a free elastic stack Linux distro focused on DFIR investigations. First download and unzip the SOF-ELK 7-zipped VMware image from [http://for572.com/sof-elk-vm](http://for572.com/sof-elk-vm). * Username: `elk_user` * Password: `forensics` When you boot up the VM, you will get a screen similar to below: ![SOF-ELK Bootup](01-SOF-ELK-Bootup.png) Open Kibana in a web browser according to the URL displayed. For example: http://172.16.62.130:5601/ >> Note: it may take a while for Kibana to load. You should see a webpage as follows: ![SOF-ELK Kibana](02-Kibana.png) ## Import the CSV results Click the sidebar icon in top-lefthand corner and open `Integrations`. ![Integrations](03-Integrations.png) Type in `csv` in the search bar and click `Upload a file`. ![CSV Upload](04-IntegrationsImportCSV.png) After uploading the CSV file, click `Override settings` to specify the correct timestamp format. ![Override Settings](05-OverrideSettings.png) Perform the following changes and then click `Apply`: 1. Change `Timestamp format` to `custom`. 2. Specify the format as `yyyy-MM-dd HH:mm:ss.SSS XXX` 3. Change the `Time field` to `Timestamp`. ![Override Settings Config](06-OverrideSettingsConfig.png) Now click `Import` in the bottom left-hand corner. ![CSV Import](07-CSV-Import.png) Click on `Advanced` and perform the following settings: 1. Title the `Index name` as `evtxlogs-hayabusa`. 2. Under `Index settings`, add `, "number_of_replicas": 0` so that the index health status does not turn yellow. 3. Under `Mappings`, change the `RuleTitle` type of `text` to `keyword` so that we can do statistics on the rule titles. 4. Under `Ingest pipeline`, add `, "field": "Timestamp"` under the `remove` section. Timestamps will be displayed as `@timestamp` so this duplicate field is not needed. Settings should look similar to below: ![Import Data Settings](08-ImportDataSettings.png) After importing, you should receive something similar to below: ![Import Finish](09-ImportFinish.png) You can now click `View index in Discover` to view the results. ## Analyzing results The default Discover view should look similar to this: ![Discover View](10-Discover.png) Level: "critical" *LatMov* "Password Spray" https://qiita.com/kzzzzo2/items/ead8ccc77b7609143749