This repository has been archived by the owner on Feb 16, 2022. It is now read-only.
forked from zeek/bro-plugins
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into topic/johanna/postgres
- Loading branch information
Showing
89 changed files
with
1,391 additions
and
193 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.2-53 | ||
0.2-84 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
README |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#! /bin/sh | ||
|
||
listen_port=$1 | ||
|
||
# First try the traditional netcat (this is the default netcat on debian) | ||
nc -l -p $listen_port 2>/dev/null | ||
|
||
if [ $? -ne 0 ]; then | ||
# Traditional netcat failed, so try the netcat that everyone else uses | ||
nc -l $listen_port | ||
fi |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 1 addition & 3 deletions
4
...csearch/tests/elasticsearch/redef-fmt.bro → ...recated/tests/elasticsearch/es-output.bro
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,9 @@ | ||
# @TEST-REQUIRES: which nc | ||
# @TEST-EXEC: btest-bg-run nc nc -l 9200 | ||
# @TEST-EXEC: btest-bg-run nc $SCRIPTS/run-nc 9200 | ||
# @TEST-EXEC: bro -r $TRACES/syslog-single-udp.trace %INPUT | ||
# @TEST-EXEC: btest-bg-wait -k 5 | ||
|
||
# @TEST-EXEC: btest-diff nc/.stdout | ||
|
||
@load Bro/ElasticSearch/logs-to-elasticsearch.bro | ||
redef LogElasticSearch::send_logs += { Conn::LOG }; | ||
|
||
redef LogElasticSearch::index_name_fmt = "%Y.%m.%d-%H"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 4 additions & 2 deletions
6
...csearch/tests/elasticsearch/es-output.bro → ...recated/tests/elasticsearch/redef-fmt.bro
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
# @TEST-REQUIRES: which nc | ||
# @TEST-EXEC: btest-bg-run nc nc -l 9200 | ||
# @TEST-EXEC: btest-bg-run nc $SCRIPTS/run-nc 9200 | ||
# @TEST-EXEC: bro -r $TRACES/syslog-single-udp.trace %INPUT | ||
# @TEST-EXEC: btest-bg-wait -k 5 | ||
|
||
# @TEST-EXEC: btest-diff nc/.stdout | ||
|
||
@load Bro/ElasticSearch/logs-to-elasticsearch.bro | ||
redef LogElasticSearch::send_logs += { Conn::LOG }; | ||
redef LogElasticSearch::send_logs += { Conn::LOG }; | ||
|
||
redef LogElasticSearch::index_name_fmt = "%Y.%m.%d-%H"; |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
.state | ||
build | ||
|
||
# Compiled Object files | ||
*.slo | ||
*.lo | ||
*.o | ||
*.obj | ||
|
||
# Precompiled Headers | ||
*.gch | ||
*.pch | ||
|
||
# Compiled Dynamic libraries | ||
*.so | ||
*.dylib | ||
*.dll | ||
|
||
# Fortran module files | ||
*.mod | ||
|
||
# Compiled Static libraries | ||
*.lai | ||
*.la | ||
*.a | ||
*.lib | ||
|
||
# Executables | ||
*.exe | ||
*.out | ||
*.app |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
cmake_minimum_required(VERSION 2.8) | ||
project(Plugin) | ||
include(BroPlugin) | ||
find_package(LibRDKafka) | ||
find_package(OpenSSL) | ||
|
||
if (LIBRDKAFKA_FOUND AND OPENSSL_FOUND) | ||
include_directories(BEFORE ${LibRDKafka_INCLUDE_DIR} ${OpenSSL_INCLUDE_DIR}) | ||
bro_plugin_begin(BRO KAFKA) | ||
bro_plugin_cc(src/KafkaWriter.cc) | ||
bro_plugin_cc(src/Plugin.cc) | ||
bro_plugin_cc(src/TaggedJSON.cc) | ||
bro_plugin_bif(src/kafka.bif) | ||
bro_plugin_dist_files(README CHANGES COPYING VERSION) | ||
bro_plugin_link_library(${LibRDKafka_LIBRARIES}) | ||
bro_plugin_link_library(${LibRDKafka_C_LIBRARIES}) | ||
bro_plugin_link_library(${OpenSSL_LIBRARIES}) | ||
bro_plugin_end() | ||
|
||
elseif (NOT LIBRDKAFKA_FOUND) | ||
message(FATAL_ERROR "LibRDKafka not found.") | ||
|
||
elseif (NOT OPENSSL_FOUND) | ||
message(FATAL_ERROR "OpenSSL not found.") | ||
|
||
endif () |
Oops, something went wrong.