Comments (5)
How about this:
perl(
queue-func("queue", es_index("syslog-$YEAR.$MONTH.$DAY"), es_type("syslog"))
);
And if you want to force a type, then es_type(string("syslog"))
would also work. This seems more natural than using pair()
, but has the drawback of not having the whole value-pairs infrastructure underneath exposed (so you can't do key("es_*")
for example).
from syslog-ng-incubator.
that looks right to me, and I'd need the same for init-func and deinit-func
from syslog-ng-incubator.
Yeah, I'd do it in a general way, so the same stuff can be reused for other *-func()
options, in all relevant drivers. (This will take some time, though, as 3.5.5 is a much higher priority task at the moment).
from syslog-ng-incubator.
For init-func, and deinit func i wouldn't do the same, because at init-time and deinit-time there is no message, on which you can apply your template. That's why we use constant globals in lua, for example. I would use the lua-style config in all scripted destinations. We will see if the semantics will differ, or we can unify them, too. (In lua, you cannot use named parameters from C, only positional ones, but in python, you can do something like that. Every language has some dict/hash/table-like structure, so I would go for that direction for scripted destinations).
from syslog-ng-incubator.
Yeah, for init/deinit, it wouldn't be a template. But similar syntax. How it gets pushed down to the interpreter, is another matter.
from syslog-ng-incubator.
Related Issues (20)
- java destination on FreeBSD HOT 6
- systemd HOT 3
- java destination on RHEL6 (CentOS6) HOT 1
- multiple java destinations java.lang.UnsatisfiedLinkError HOT 2
- Question: java destination LD_LIBRARY_PATH HOT 2
- typo in the example config of python destination HOT 1
- grok compile warning
- Error parsing kafka, Error compiling template (Unknown template function "format-json") HOT 1
- kafka-plugin segfaults
- Do the SCL changes in 3.7.2 break the kafka C support from the incubator? HOT 9
- Rename kafka destination to kafka-c HOT 1
- some problems when compiling syslog-ng-incubator HOT 1
- Some problems when running zmq destination with syslog-ng 3.7.2 HOT 8
- compiling the date parser fails on FreeBSD HOT 4
- why I ./configure it always show the error" No package 'syslog-ng' found" HOT 7
- Add support for 3.8 HOT 7
- Grok pattern compilation error HOT 6
- java destination can't be disabled
- zmq compile warnings HOT 2
- there are traces of graphite in 0.4.0 sources
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 syslog-ng-incubator.