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

More advanced use case #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

More advanced use case #3

wants to merge 1 commit into from

Conversation

ser
Copy link

@ser ser commented Nov 22, 2022

I use InfluxDB for visualisation purposes and most of access_log content is not needed - this example shows how to manage data manipulation.

I hope it is useful for your audience.

I use InfluxDB for visualisation purposes and most of access_log content is not needed - this example shows how to manage data manipulation.

I hope it is useful for your audience.
@ser
Copy link
Author

ser commented Nov 22, 2022

I forgot to mention that timestamp in InfluxDB is being updated to real perfect time of the web service entry instead of timestamp of the submission by the module which is less relevant.

@kilimnik
Copy link
Member

Thanks for the contribution, happy to hear, that other people are using this.

file_server
log {
import accesslog "example.com"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The import name does not mach the snippet name

```
[[inputs.http_listener_v2]]
service_address = "10.99.99.99:7777"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

consider using 0.0.0.0 here to make it more clear, that it is a listening port

(influxlog) {
output influx_log {
token whatever_as_telegraf_does_not_verify_it
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The logging output format is missing here. Add format json


## telegraf.conf
```
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add the toml language here to add syntax highlighting

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

Successfully merging this pull request may close these issues.

3 participants