Giter VIP home page Giter VIP logo

Comments (6)

jhuckaby avatar jhuckaby commented on June 21, 2024

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.

hidakafinzelz avatar hidakafinzelz commented on June 21, 2024

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.

jhuckaby avatar jhuckaby commented on June 21, 2024

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.

hidakafinzelz avatar hidakafinzelz commented on June 21, 2024

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.

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.

jhuckaby avatar jhuckaby commented on June 21, 2024

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.

hidakafinzelz avatar hidakafinzelz commented on June 21, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.