Skip to content

Commit 9744c3e

Browse files
author
505Forensics
committed
Updated files; log2timeline parser push
1 parent a1e8b95 commit 9744c3e

File tree

4 files changed

+54
-5
lines changed

4 files changed

+54
-5
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Related Posts
1515

1616
Changelog
1717
=============
18+
02 Mar 2014 - Added log2timeline logstash config
1819

1920
01 Mar 2014 - Added apache-combined logstash config
2021

conf_files/logstash-apache-combined.conf

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
########################
2-
# LogStash Configuration Files - Common Apache Files
2+
# logstash Configuration Files - Combined Apache Files
33
# Created by 505Forensics (http://www.505forensics.com)
44
# MIT License, so do what you want with it!
55
#
6-
# For the use with logstash, elasticsearch, and kibana to analyze logs
6+
# For use with logstash, elasticsearch, and kibana to analyze logs
77
#
8-
# Usage: Reference this config file for your instance of logstash to parse common Apache log files
8+
# Usage: Reference this config file for your instance of logstash to parse combined Apache log files
99
#
1010
# Limitations: This file will parse raw text, not .gz log files. For .gz files, utilize a 'tcp' input, and zcat the files to netcat
1111
#

conf_files/logstash-apache-common.conf

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
########################
2-
# LogStash Configuration Files - Common Apache Files
2+
# logstash Configuration Files - Common Apache Files
33
# Created by 505Forensics (http://www.505forensics.com)
44
# MIT License, so do what you want with it!
55
#
6-
# For the use with logstash, elasticsearch, and kibana to analyze logs
6+
# For use with logstash, elasticsearch, and kibana to analyze logs
77
#
88
# Usage: Reference this config file for your instance of logstash to parse common Apache log files
99
#

conf_files/logstash-log2timeline.conf

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
########################
2+
# logstash Configuration Files - Log2timeline Output Files
3+
# Created by 505Forensics (http://www.505forensics.com)
4+
# MIT License, so do what you want with it!
5+
#
6+
# For use with logstash, elasticsearch, and kibana to analyze logs
7+
#
8+
# Usage: Reference this config file for your instance of logstash to parse already-created log2timeline supertimelines
9+
#
10+
# Limitations: This file will parse raw text, and there must be a delimiter provided if not the default comma
11+
#
12+
#######################
13+
14+
input {
15+
file {
16+
type => "log2timeline-perl"
17+
start_position => "beginning"
18+
sincedb_path => "/dev/null"
19+
20+
#Edit the following path to reflect the location of your timeline files. You can also change the extension if you use something else
21+
path => "/path/to/your/timelines/*.csv"
22+
}
23+
}
24+
25+
filter {
26+
if [type] == "log2timeline-perl" {
27+
csv {
28+
columns => ["date","time","timezone","MACB","source","sourcetype","type","user","host","short","desc","version","filename","inode","notes","format","extra"]
29+
30+
#If you use a custom delimiter, change the following value in between the quotes to your delimiter. Otherwise, leave the next line alone.
31+
separator => ","
32+
}
33+
34+
mutate {
35+
replace => [ "date" , "%{date} %{time}" ]
36+
}
37+
38+
if [timezone] == "timezone" {
39+
drop { }
40+
}
41+
}
42+
}
43+
44+
output {
45+
elasticsearch {
46+
embedded => true
47+
}
48+
}

0 commit comments

Comments
 (0)