Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

syslog and dionaea #3

Open
flori07 opened this issue Oct 9, 2013 · 2 comments
Open

syslog and dionaea #3

flori07 opened this issue Oct 9, 2013 · 2 comments

Comments

@flori07
Copy link

flori07 commented Oct 9, 2013

hey, is it possible to log data from dionaea to a windows syslog server (KIWI syslog server -for example)?

@mshirley
Copy link

mshirley commented Dec 8, 2015

Until this is implemented you can use logstash (https://www.elastic.co/products/logstash) with the sqlite input plugin. Just make sure that you patch dionaea with #10 in order to create the id column that logstash needs.

Then you can use the logstash syslog output to send to your kiwi server.

@mshirley
Copy link

mshirley commented Dec 8, 2015

Here's a working logstash 2.1.0 config file that sends to the local syslog facility. Instead of the pipe output you can use the syslog output to send to a remote syslog server

input {
  sqlite {
    path => '/opt/dionaea/var/dionaea/logsql.sqlite'
    exclude_tables => [ "dcerpcbinds", "dcerpcrequests", "dcerpcserviceops", "dcerpcservices", "downloads", "emu_profiles", "emu_services", "emu_services_old", "logins", "mssql_commands", "mssql_fingerprints", "mysql_command_args", "mysql_command_ops", "mysql_commands", "offers", "p0fs", "resolves", "sip_addrs", "sip_commands", "sip_sdp_connectiondatas", "sip_sdp_medias", "sip_sdp_origins", "sip_vias", "virustotals", "virustotalscans" ]
  }
}

# logstash 2.1.0 and plugin causing seralization issue with the @db feild, remove it until it's fixed
filter {
  mutate {
    remove_field => ['db']
  }
}

output {
  pipe {
    command => 'logger -i -t dionaea-sqlite'
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants