Comments (6)
That log file is temporary, and only exists while the job is running, and only on the target server that is running the job. When the job completes, the log is "uploaded" into the storage system on the master server, and stored in S3, etc. and then deleted from local disk.
Even if you use the Filesystem Storage Plugin, the log file is still moved to its new home in the data
directory, with a hashed file path.
If you want to get access to your completed job log files, navigate to the "Job Details" page in the UI, and click on the "View Full Log" link. Example URL:
http://mini.local:3012/api/app/get_job_log?id=jlpu8a5ar2z
from cronicle.
Thanks.
Where is path of this log file on the master server?
I want download this log with api and with json format
.
from cronicle.
You didn't say which Storage Plugin you are using. I'm assuming you are using the Filesystem Plugin?
If so, it's not that easy. As I said above, the files are stored in a hash file format tree, with hexadecimal directories. You should use the API, as I said above:
You can curl it like this:
curl -o LOG_FILE.txt "http://SERVER:PORT/api/app/get_job_log?id=JOB_ID"
Replace SERVER
with your master server hostname, PORT
with your port number (3012, etc.), and JOB_ID
with the job ID. This will download the log file and store it wherever you want.
It is "very difficult" to get access to the raw files on the filesystem, when you are using the Filesystem Storage Plugin. They are stored in a cryptic, distributed, hashed file directory tree format like this:
/opt/cronicle/data/jobs/ff/ae/5a/ffae5a2df778d3780edf058aba5d0988.gz
It is MUCH better to use the API as shown above.
from cronicle.
You didn't say which Storage Plugin you are using. I'm assuming you are using the Filesystem Plugin?
If so, it's not that easy. As I said above, the files are stored in a hash file format tree, with hexadecimal directories. You should use the API, as I said above:
You can curl it like this:
curl -o LOG_FILE.txt "http://SERVER:PORT/api/app/get_job_log?id=JOB_ID"
Replace
SERVER
with your master server hostname,PORT
with your port number (3012, etc.), andJOB_ID
with the job ID. This will download the log file and store it wherever you want.It is "very difficult" to get access to the raw files on the filesystem, when you are using the Filesystem Storage Plugin. They are stored in a cryptic, distributed, hashed file directory tree format like this:
/opt/cronicle/data/jobs/ff/ae/5a/ffae5a2df778d3780edf058aba5d0988.gz
It is MUCH better to use the API as shown above.
Thanks for you replay.
Curl can resolve my problem.
By the way.
In addition to Filesystem Storage, it also supports other Storage Plugin? Like MongoDB, MySQL, PostSQL and so on.
from cronicle.
In addition to Filesystem Storage, it also supports other Storage Plugin? Like MongoDB, MySQL, PostSQL and so on.
Currently S3 and Couchbase: https://github.com/jhuckaby/Cronicle/blob/master/docs/Configuration.md#storage-configuration
from cronicle.
In addition to Filesystem Storage, it also supports other Storage Plugin? Like MongoDB, MySQL, PostSQL and so on.
Currently S3 and Couchbase: https://github.com/jhuckaby/Cronicle/blob/master/docs/Configuration.md#storage-configuration
OK, Thanks.
from cronicle.
Related Issues (20)
- Error: Cannot find module '../package.json' after reboot HOT 2
- Cronicle UI constantly reloading landing page (completely blank) when accessing via exposed port HOT 3
- Cannot run python script which calls headless chromium HOT 2
- Sub-Parameter enhancement HOT 4
- Aborted Job: Server 'worker1' shut down unexpectedly HOT 3
- Custom names for log files ??
- XSS Vulnerability in Cronicle Full Name Field Allows Admin Credential Theft HOT 1
- php shell script and zombie processes HOT 6
- Mobile Friendly -- Enhancement HOT 1
- Unauthenticated Reflected XSS Vulnerability HOT 13
- Increase number of jobs in history page HOT 2
- Manually started jobs with Run All (Catch-up) mode enabled are not automatically restarted after a server crash/restart. HOT 11
- about job_log_max_size options
- Not able to change IP of server on my AWS Ubuntu 22.04 server HOT 2
- Cronicle mails fall to spam
- Build Error: Error: Could not locate match in HTML source: undefined: COMBINE_SCRIPT HOT 7
- Build Error: Error: Could not locate match in HTML source: undefined: COMBINE_SCRIPT HOT 1
- Agent instead of SSH
- Feature Request - Workflow HOT 1
- Cronicle - V2 Timeline HOT 1
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 cronicle.