Comments (7)
https://github.com/cloudfoundry-community/go-cfclient could be used for this I think.
@rkoster mentioned this https://github.com/sourcegraph/apiproxy that could be used to provide caching.
from firehose-to-syslog.
Yes caching is needed to avoid asking to CC every request.
from firehose-to-syslog.
@simonjohansson Given that the loggregator team seem pretty adamant about no adding this information in loggregator - cloudfoundry/loggregator#48 - and we would like this "firehose-to-syslog" nozzle to eventually be adopted by them; I propose that we don't add this functionality here.
I also think we can sidestep the whole caching complexity by leveraging the translate
filter's ability to lookup values from an external text file.
I've put together a simple prototype of how this would work. Essentially,
-
The
cf_app_details_cache job
creates ayml
file containing the lookup information at/var/vcap/store/cf_app_details_cache/cf_app_space_org_dictionary.yml
'9af4f832-32cf-47c1-bce8-f2e852ea0730': '{"cf_app_id":"9af4f832-32cf-47c1-bce8-f2e852ea0730","cf_app_name":"app-logs","cf_space_id":"5c98b860-f5d2-444c-b923-d91b277b5269","cf_space_name":"production","cf_org_id":"8005f45b-76d9-4038-8ca1-9e0a85ed5be0","cf_org_name":"system"}' '54967f0c-5069-4428-83de-84f86c1286e2': '{"cf_app_id":"54967f0c-5069-4428-83de-84f86c1286e2","cf_app_name":"devApp1","cf_space_id":"a871a722-cad2-4d46-8061-2c9b728b7d8f","cf_space_name":"development","cf_org_id":"8005f45b-76d9-4038-8ca1-9e0a85ed5be0","cf_org_name":"system"}'
-
The log_filter rules use this lookup file as their
dictionary_path
to decorate each log message (reloading the file every refresh_interval seconds)
I'm hoping you can help me write a simple CLI app that can be triggered to query the CC for space data and write said yml
file; which, since it won't need do to any caching etc should hopefully be really simple.
Thoughts?
from firehose-to-syslog.
@mrdavidlaing The name lookup and space(including caching) is already on going using boltdb you can check the PR there #16 is not finished yet, but it s pretty close.
Using boltd is much more flexible than using a plan yam file.
from firehose-to-syslog.
@mrdavidlaing I finish to integrate org, space and apps
So please try out my branch https://github.com/shinji62/firehose-to-syslog/tree/feature/Application_name_lookup
from firehose-to-syslog.
Should be done.
from firehose-to-syslog.
👍
from firehose-to-syslog.
Related Issues (20)
- " read: connection reset by peer" when connecting to Syslog server HOT 1
- Firehose Nozzle app experiences following issue sometimes HOT 2
- Splunk logs are missing in flight. HOT 4
- How can GoVersion be updated in nozzle v4.1.1? HOT 10
- Suffix Stripping using a Regex instead of HasSuffix Function HOT 4
- F2S Upgrade Question HOT 3
- Performance Discussion HOT 1
- ERR panic: runtime error: invalid memory address or nil pointer dereference^ HOT 47
- Failed to compile uaatokenrefresher
- F2S_DISABLE_LOGGING = true -- v5.0.0 -- does not disable logging HOT 8
- Exception occurred! Message: Missed Logs Details: HOT 6
- Connect to Pivotal Webservices HOT 1
- The process misses to send all the tags keys to syslog
- v5.0.0+ too slow logging with PCF/PAS 2.5 (no problem in v4.1.1) HOT 7
- Ingestor_Cloudfoundry_Firehose SIGSEGV: segmentation violation /Missing logs HOT 1
- where can i find documentation of available options, switches, and environment variables and their acceptable values HOT 1
- HttpStartStop invalid app id HOT 1
- Unable to Revert back to V1 loggregator due to performance concerns / And Cloud Foundry announcement
- Org, Space name and ID's not available.
- firehose-to-syslog arm64/aarch64 release
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 firehose-to-syslog.