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

No data in influxdbv2 (pfsense+) #61

Open
everything-tech-related opened this issue Apr 17, 2022 · 3 comments
Open

No data in influxdbv2 (pfsense+) #61

everything-tech-related opened this issue Apr 17, 2022 · 3 comments

Comments

@everything-tech-related

[[outputs.influxdb_v2]]
urls = ["http://192.168.0.202:8086"]
token = "yz7sVfFnH4_8fIrdnniQFVBnNYg1Yxcng5l-aNaSsD9hBC1yYH4j0shbZvuw_f10wxB2AJk5ffi9SsWcmlYbpA=="
organization = "cato"
bucket = "pfsense"

[[inputs.exec]]
commands = [
"/usr/local/bin/telegraf_pfifgw.php",
"sh /usr/local/bin/telegraf_temperature.sh"
]
data_format = "influx"

[[inputs.tail]]
files = ["/var/log/pfblockerng/dnsbl.log"]
data_format = "grok"
from_beginning = false
name_suffix = "_dnsbl_log"
grok_timezone = "Local"
grok_patterns = ["^%{WORD:blocktype}-%{WORD:blocksubtype},%{SYSLOGTIMESTAMP:timestamp:ts-syslog},%{IPORHOST:domain},%{IPORHOST:src_ip:tag},%{GREEDYDATA:req_agent},%{WORD:blockmethod},%{WORD:blocklist:tag},%{IPORHOST:tld:tag},%{WORD:feed_name:tag},%{GREEDYDATA:duplicateeventstatus}"]

[[inputs.tail]]
files = ["/var/log/pfblockerng/ip_block.log"]
data_format = "grok"
from_beginning = false
name_suffix = "_ip_block_log"
grok_timezone = "Local"
grok_patterns = ["^%{SYSLOGTIMESTAMP:timestamp:ts-syslog},%{NUMBER:rulenum},%{DATA:interface},%{WORD:friendlyname},%{WORD:action},%{NUMBER:ip_version},%{NUMBER:protocolid},%{DATA:protocol:tag},%{IPORHOST:src_ip:tag},%{IPORHOST:dest_ip:tag},%{WORD:src_port:tag},%{NUMBER:dest_port:tag},%{WORD:direction},%{WORD:geoip_code:tag},%{DATA:ip_alias_name},%{DATA:ip_evaluated},%{DATA:feed_name:tag},%{HOSTNAME:resolvedhostname},%{GREEDYDATA:clienthostname},%{GREEDYDATA:ASN},%{GREEDYDATA:duplicateeventstatus}"]

#[[inputs.unbound]]

server = "127.0.0.1:953"

binary = "/usr/local/bin/telegraf_unbound.sh"

psinflux

@everything-tech-related
Copy link
Author

infl

@SpreeZ00
Copy link

The pfSense GUI does not support InfluxDB v2 at the moment, as far as I know. I just enabled Telegraf in the GUI and then went to edit the telegraf.conf directly at /usr/local/telegraf.conf. There I added:

[[outputs.influxdb_v2]]
urls = ["http://example.influxdb.com:8086"]/
token = "GET_A_TOKEN_FROM_YOUR_INFLUXDB_SERVER"
organization = "YOUR_ORG_NAME"
bucket = "YOUR_PFSENSE_BUCKET"

That worked for me. But for using the dashboard yeah well you have to update everything to Flux Queries.

@avillalba96
Copy link

The pfSense GUI does not support InfluxDB v2 at the moment, as far as I know. I just enabled Telegraf in the GUI and then went to edit the telegraf.conf directly at /usr/local/telegraf.conf. There I added:

[[outputs.influxdb_v2]]
urls = ["http://example.influxdb.com:8086"]/
token = "GET_A_TOKEN_FROM_YOUR_INFLUXDB_SERVER"
organization = "YOUR_ORG_NAME"
bucket = "YOUR_PFSENSE_BUCKET"

That worked for me. But for using the dashboard yeah well you have to update everything to Flux Queries.

Is there a dashboard version for querys flux?

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

3 participants