Comments (13)
no one could provide me the template used by ommondb?
Thanks!
from rsyslog.
There is no default template, by default MongoDB uses the message passing interface and extracts properties from the message itself.
from rsyslog.
I'm refering the canned template from documentation http://www.rsyslog.com/doc/ommongodb.html I want to try a custom template but the canned that's indicated on documentation fails.
from rsyslog.
Mhh, I don't know where this doc item stems back to. Maybe we had this template in the early days, but right now there is no default template, the code picks up the properties from the message object, as I said. I'll fix the doc ASAP.
from rsyslog.
Ok no problem. Finally I got it working with:
template(name="JSON" type="list" option.json="on"){
property(name="hostname" outname="sys")
property(name="timereported" dateformat="rfc3339" outname="time")
property(name="timegenerated" dateformat="rfc3339" outname="time_rcv")
property(name="msg" outname="msg")
property(name="syslogfacility" outname="syslog_fac")
property(name="syslogseverity" outname="syslog_sever")
property(name="syslogtag" outname="syslog_tag")
property(name="programname" outname="procid")
property(name="procid" outname="pid")
property(name="syslogpriority-text" outname="level")
}
This template could be easily fixed.
Thank you so much for your help.
from rsyslog.
I was wrong, that's not working because dates and integer must to be formatted as integer/date to work with LogAnalyzer for example.
Any idea how to force format it in a template?
I'm inspecting the code at https://github.com/rsyslog/rsyslog/blob/master/plugins/ommongodb/ommongodb.c to find anything else than hard modify custom template and recompile. Cannot recompile on production....
from rsyslog.
There is a pull request to provide a specifc mongodb format. It's a bit
tricky, thus it's not yet merged. What exactly is your use case to change
the template?
On Wed, May 7, 2014 at 5:26 PM, Guillermo Caracuel <[email protected]
wrote:
I was wrong, that's not working because dates and integer must to be
formatted as integer/date to work with LogAnalyzer for example.Any idea how to force format it in a template?
I'm inspecting the code at
https://github.com/rsyslog/rsyslog/blob/master/plugins/ommongodb/ommongodb.cto find anything else than hard modify custom template and recompile.
Cannot recompile on production....—
Reply to this email directly or view it on GitHubhttps://github.com//issues/60#issuecomment-42441498
.
from rsyslog.
I need to add to the default template some other fields, for example: fromhost property and in a near future some other parameters that will be relayed from another rsyslog server acting as tags.
from rsyslog.
I'm still needing this. Any update Rainer?
Thank you so much.
from rsyslog.
sorry, no time at the moment..
On Wed, Jun 4, 2014 at 9:32 AM, Guillermo Caracuel <[email protected]
wrote:
I'm still needing this. Any update Rainer?
Thank you so much.
—
Reply to this email directly or view it on GitHub
#60 (comment).
from rsyslog.
I tried https://github.com/eczema/rsyslog/tree/v7-stable and it's working perfect. Hate to compile and to downgrade to v7 but...
from rsyslog.
After test and adapt code from @eczema I pulled my own request on master branch.
from rsyslog.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
from rsyslog.
Related Issues (20)
- Feature request: New input channel for dnstap ( framestream ) messages over network port
- How to get rsyslog to honour msg hostname and timestamp for local connections HOT 1
- When $AllowedSender TCP/UDP changed IP got Error - TCP message from disallowed sender HOT 4
- test suite failure with DTLS support enabled HOT 9
- DTLS build failure: make[2]: *** No rule to make target '../../runtime/lmnsd_ossl.la', needed by 'imdtls.la'. Stop.
- DTLS make install failure: /usr/bin/ld: cannot find -llmnsd_ossl: No such file or directory HOT 4
- Build with old openssl 1.0.1e (el6) since nsd_ossl.c revamp / dtls HOT 2
- rsyslog crash with "double free or corruption (out)" HOT 4
- Debian 11 OBS package doesn't ship `/usr/lib/rsyslog/rsyslog-rotate` HOT 5
- Q: Debian 11 OBS package plugins location
- RFE: Debian 11 OBS package with imkmsg
- Rsyslog and postgresql on same system?
- rsyslogd crashed with SIGABRT with Invalid next size message HOT 2
- imjournal.state file create mode
- We want to use the rfc3339 standard but manually change the timezone HOT 2
- Rsyslog 8.2402.0 does not build with LibreSSL 3.8.3 HOT 2
- clientLog rsyslogd: omrelp: could not connect to remote server, librelp error 10007 HOT 2
- test suite failures on armhf/armel after the switch to 64 bit timestamps
- Compilation error with omhttp enabled HOT 1
- Typo in error message when file in `cat /non/existent/file` does not exist
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 rsyslog.