Description Usage Arguments Value Examples
The individual components of a Snort rule are parsed and put into a tidy
data frame format. The rule options are also parsed and the resultant
options
columns is a data frame with option name and value. The value
for options that do not have values is NA_character
.
There is an id
column which is just an index of the rule position in the
file. An extra commented
field exists to identify rules that are in the
file but commented out. This makes it easy to filter on in-use rules.
The options
column can be unnested with tidyr::unnest()
.
1 | read_rules(path)
|
path |
path to snort rules file |
data frame
1 2 3 | rules <- read_rules(
system.file("extdata", "emerging-telnet.rules", package="porc")
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.