Added the pfSense additional Config
- Additional configuration for Telegraf
This commit is contained in:
parent
50729d0cdc
commit
86dbe357f3
25
config/additional_config.conf
Normal file
25
config/additional_config.conf
Normal file
@ -0,0 +1,25 @@
|
||||
[[inputs.exec]]
|
||||
commands = [
|
||||
"/usr/local/bin/telegraf_netifinfo_plugin",
|
||||
"/usr/local/bin/gateways.py",
|
||||
"sh /usr/local/bin/temperature.sh"
|
||||
]
|
||||
data_format = "influx"
|
||||
|
||||
[[inputs.logparser]]
|
||||
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"
|
||||
|
||||
[[inputs.logparser]]
|
||||
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"
|
Loading…
x
Reference in New Issue
Block a user