Merge pull request #7 from tiny6996/master
changed from using grok to csv and updated interfaces
This commit is contained in:
commit
a367c8cb07
@ -94,7 +94,7 @@ After writing this up, I realize I need to change this variable name, it's just
|
||||
### Telegraf
|
||||
[Telegraf Config](config/additional_config.conf)
|
||||
|
||||
In the [/config](config/additional_config.conf) directory you will find all of the additional telegraf config. In pfSense, under Services -> Teltegraf, at the bottom of the page with the teeny tiny text box is where you paste in the included config.
|
||||
In the [/config](config/additional_config.conf) directory you will find all of the additional telegraf config. In pfSense, under Services -> Telegraf, at the bottom of the page with the teeny tiny text box is where you paste in the included config.
|
||||
|
||||
I also included the config for Unbound DNS and it's commented out. I'm not currently using it, but it's fully functional, just uncomment if you want to use it.
|
||||
|
||||
|
@ -6,23 +6,21 @@
|
||||
]
|
||||
data_format = "influx"
|
||||
|
||||
[[inputs.logparser]]
|
||||
[[inputs.tail]]
|
||||
files = ["/var/log/pfblockerng/dnsbl.log"]
|
||||
from_beginning=true
|
||||
[inputs.logparser.grok]
|
||||
measurement = "dnsbl_log"
|
||||
patterns = ["^%{WORD:BlockType}-%{WORD:BlockSubType},%{SYSLOGTIMESTAMP:timestamp:ts-syslog},%{IPORHOST:destination:tag},%{IPORHOST:source:tag},%{GREEDYDATA:call},%{WORD:BlockMethod},%{WORD:BlockList},%{IPORHOST:tld:tag},%{WORD:DefinedList:tag},%{GREEDYDATA:hitormiss}"]
|
||||
timezone = "Local"
|
||||
[inputs.logparser.tags]
|
||||
value = "1"
|
||||
name_suffix = "_dnsbl"
|
||||
data_format = "csv"
|
||||
csv_delimiter = ","
|
||||
csv_tag_columns = ["destination","source","tld"]
|
||||
csv_column_names = ["BlockType","timestamp","destination","source","call","BlockMethod","BlockList","tld","DefinedList","hitormiss"]
|
||||
|
||||
[[inputs.logparser]]
|
||||
[[inputs.tail]]
|
||||
files = ["/var/log/pfblockerng/ip_block.log"]
|
||||
from_beginning=true
|
||||
[inputs.logparser.grok]
|
||||
measurement = "ip_block_log"
|
||||
patterns = ["^%{SYSLOGTIMESTAMP:timestamp:ts-syslog},%{NUMBER:TrackerID},%{GREEDYDATA:Interface},%{WORD:InterfaceName},%{WORD:action},%{NUMBER:IPVersion},%{NUMBER:ProtocolID},%{GREEDYDATA:Protocol},%{IPORHOST:SrcIP:tag},%{IPORHOST:DstIP:tag},%{NUMBER:SrcPort},%{NUMBER:DstPort},%{WORD:Dir},%{WORD:GeoIP:tag},%{GREEDYDATA:AliasName},%{GREEDYDATA:IPEvaluated},%{GREEDYDATA:FeedName:tag},%{HOSTNAME:ResolvedHostname},%{HOSTNAME:ClientHostname},%{GREEDYDATA:ASN},%{GREEDYDATA:DuplicateEventStatus}"]
|
||||
timezone = "Local"
|
||||
name_suffix = "_ipblock"
|
||||
data_format = "csv"
|
||||
csv_delimiter = ","
|
||||
csv_tag_columns = ["GeoIP","FeedName","SrcIP","DstIP"]
|
||||
csv_column_names = ["timestamp","TrackerID","Interface","InterfaceName","action","IPVersion","ProtocolID","Protocol","SrcIP","DstIP","SrcPort","DstPort","Dir","GeoIP","AliasName","IPEvaluated","FeedName","ResolvedHostname","ClientHostname","ASN","DuplicateEventStatus"]
|
||||
|
||||
#[[inputs.unbound]]
|
||||
# server = "127.0.0.1:953"
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user