Comments (5)
I've just noticed similar thing, although i wanted to blame this one on the file includes enhancement.
I've got log-courier config like this:
{
"network": {
"servers": [ "logstash2..." ],
"ssl ca": "...",
"timeout": 15,
"reconnect": 10
},
"includes": [
"/etc/log-courier.d/*.conf"
],
"files": [
{
"paths": [ "/var/log/mail.log" ],
"fields": { "type": "maillog1" }
}
]
}
and then the files in the /etc/log-courier.d/ are:
test.conf:
[
{
"paths": [ "/var/log/mail.log" ],
"fields": { "type": "maillog3" }
}
]
test2.conf:
[
{
"paths": [ "/tmp/php-errors" ],
"fields": { "type": "php-errors" }
}
]
test3.conf
[
{
"paths": [ "/var/log/mail.log" ],
"fields": { "type": "maillog4" }
}
]
I'd expect logs from /tmp/php-errors to have type: php-errors, but they have type: maillog4
If i remove test3.conf, the log will have type: php-errors
It sounds like it reads the last type and sets all the log events to that type.
from log-courier.
Thanks for the report.
I've reproduced this and will fix it shortly. Sorry for the issue.
from log-courier.
Hi - I pushed a fix for this to the develop branch. Let me know if this doesn't work for you.
from log-courier.
looks to be working great! thanks!
from log-courier.
Works like a charm 👍
Thanks!
from log-courier.
Related Issues (20)
- Duplicates observed when log-courier configuration file is overwritten HOT 3
- Undocumented behavior for paths matched by multiple fileglobs HOT 1
- log-courier can't seem to handle `~` for home in certain contexts. HOT 2
- error in logstash 7 HOT 4
- log-courier and logstash > 7.4.0? HOT 10
- Throughput question HOT 15
- does the includes configuration still work correctly? HOT 3
- Hold time setting not closing files properly
- syslog "progname" uses a full path rather than a basename HOT 1
- Information about payloads / different debug level ? HOT 3
- error while compiling code in the command line using MK in windows for Z wave HOT 1
- version.rb missing from the plugin package
- log-courier admin socket stuck HOT 2
- lc-admin does not default to tcp transport HOT 2
- order of files in lc-admin UI
- Logstash configuration auto reload is blocked by log-courier input HOT 2
- PPA packaging is using deprecated compatibility level 9 HOT 1
- 2.10.0 packages missing from PPA (Ubuntu)
- Receiver reload can cause panic
- TCP streaming receiver aborts if too many events received
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 log-courier.