Comments (10)
Could you give me a pointer of Scribe's document? Will take a look at it.
from fluentd.
So, Scribe's documentation is notoriously bad, and this is all I could find:
https://github.com/facebook/scribe/wiki/Scribe-Configuration
About halfway down, there is this blurb:
create_symlink: βyesβ or anything else; βyesβ by default
if true, will maintain a symlink that points to the most recently written file
So, in the log file directory for 'test_log', there is always a 'test_log_current' that points to the log file that is currently being written to. When the file is rotated, you just change the link (and this allows tail -F to work on the 'test_log_current' file).
from fluentd.
OK I understand.
We also might want to have modified version of out_file, just adding recent entries to the files instead of slicing logs by time_slice_format.
from fluentd.
Any update on this?
from fluentd.
Pinging this issue again.
from fluentd.
I'm not sure about the detail behavior of Scribe.
In fluentd, my implementation idea is simple:
- out_file writes chunk to file.
- after wrote the file, re-link symlink to written file.
iterates above operations for nomarl file and gz file.
Is it enough?
from fluentd.
Yeah, I think that will totally work. Will you re-link the symlink right after switching what file you are writing to?
For instance, the reason we want this is for displaying logs in our office.
from fluentd.
^ is first implementation.
out_file doesn't provide non buffered mode, so out_file can't implement Scribe like each event tailing.
If you set symlink_path in out_file, out_file plugin creates symlink with suffix to point to latest file.
We can use tail -F
to watch written logs.
from fluentd.
Perfect! Thanks :)
from fluentd.
Sorry to reopen this:
I just installed the newest td-agent package, and the way this works seems not that useful.
Right now, the symlink_path file is symlinked to the last fully written file, not the file that's currently being written. For instance, in our nginx access log directory:
last fully written log: access.log.2013080820_1.log
current file being written to: access.log.2013080821.b4e375f0fb757453e
The symlink access.log_current is currently pointing to access.log.2013080820_1.log, when I would expect it to be pointing to access.log.2013080821.b4e375f0fb757453e. Am I missing something?
from fluentd.
Related Issues (20)
- <jemalloc>: Unsupported system page size HOT 2
- TLS 1.3 support in http output plugin HOT 1
- in_unix plugin does not work with --under-supervisor (permission denied with var/run/fluent/fluent.sock) HOT 1
- All outputs in copy plugin are affected even when any one of the outputs in copy is in error HOT 6
- path placeholders in @type file are not resolved HOT 1
- messagepack bug in http (in) plugin HOT 1
- Windows - Running Td-agent from command line with --daemon flag HOT 4
- Docker logging to fluentd failed.
- tail plugin stops tailing the log files which are rotated based on file size. HOT 5
- @type stdout not working if redirect fluentd logs to a file using -o "filepath" HOT 1
- Duplicate logs when fluentd own logs are captured using label @FLUENT_LOG and are processed using a filter and then sent to stdout HOT 7
- Forward logs from pod to kafka via fluentd
- Configure the websocket output plugin
- File watchers might not be handled properly causing gradual increase in CPU/Memory usage HOT 3
- in_tcp and in_syslog fail with LoadError unless oj gem is installed HOT 4
- Enable string interpolation for hash-type parameters
- Getting 503 error code in fluentd for retryable_response_codes HOT 1
- in_windows_eventlog documentation and module issues. HOT 3
- Td-agent windows fluentd connector log file is not getting rolled over (only td-agent.log file) HOT 2
- Out forward stuck establishing connection HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fluentd.