Log job modifications
Reported by Alex-SF | 2011-04-26 11:05:54 UTC | in Rundeck 1.3 (closed)
Whenever a job is created, modified or deleted, it should be logged. This could be the service.log or a separate log file. Information must include:
- User
- Time
- Job group/name
Nice to haves for job updates, distinguish if it is a
- sequence change
- step change
- option change
Comments and changes to this ticket
-

Deleted User 2011-04-26 11:25:10 UTC
Like the ability to trace where the job was copied from before the modification.
-

Greg Schueler 2011-04-26 11:31:05 UTC
what is the difference between "sequence change" and "step change"? do you mean re-order of workflow sequence, vs. modification of a step?
Also, how about: method of job modification, e.g. XML uploade, API, GUI?
- also track Job ID to correlate b/w name changes
So something like this?
greg [timestamp] [ID1] "some/job" * MODIFIED: workflow[+1,-2,*3], options[+1], nodefilter, description greg [timestamp] [ID2] "another/job" * CREATED greg [timestamp] [ID3] "third/job" * DELETEDThe +1,-2 etc are perhaps optimistic because recording simplified diff between workflow changes might not be possible/easy.
-

Alex-SF 2011-04-26 11:34:45 UTC
Sequence change meant adding/re-ordering the steps.
Yah method of job modification is important. -

Alex-SF 2011-04-26 11:35:42 UTC
BTW, if we ultimately start serializing job defs to a file on disk, then perhaps characterizing the kind of change in the log is less important.
-

Deleted User 2011-04-26 11:49:49 UTC
+1
If there on disk, then you can use diff to compare them (or some equivalent tool). Probably fits into an existing tool chain much easier.
-

Greg Schueler 2011-04-26 17:33:06 UTC
here's some sample output using this log4j format:
[%d{ISO8601}] %X{user} %X{change} [%X{id}] %X{project} "%X{groupPath}/%X{jobName}" (%X{method})%n[2011-04-26 17:28:39,976] admin create [254] test "api-test/job-delete/cli job" (apiJobsImport) [2011-04-26 17:28:40,096] admin delete [254] test "api-test/job-delete/cli job" (apiJobDelete) [2011-04-26 17:28:40,334] admin create [255] test "test/api/test job/executions" (apiJobsImport) [2011-04-26 17:28:46,547] admin create [256] test "test/api/test job/executions 2" (apiJobsImport) [2011-04-26 17:28:49,915] admin create [257] test "test/api/test job/executions 3" (apiJobsImport) [2011-04-26 17:28:53,550] admin create [258] test "api-test/job-export/cli job" (apiJobsImport) [2011-04-26 17:28:53,916] admin create [259] test "api-test/job-run/cli job" (apiJobsImport) [2011-04-26 17:28:59,170] admin create [260] test "api-test/job-run/cli job" (apiJobsImport) [2011-04-26 17:29:01,596] admin create [261] test "-/cli job2" (apiJobsImport) [2011-04-26 17:29:01,677] admin create [262] test "-/cli job2" (apiJobsImport) [2011-04-26 17:29:01,787] admin create [263] test "api-test/cli job" (apiJobsImport) [2011-04-26 17:29:01,902] admin create [264] test "api-test/cli job" (apiJobsImport) -

-

Greg Schueler 2011-04-27 13:11:29 UTC
- Assigned user set to Greg Schueler
-

-

Greg Schueler 2011-04-29 10:22:56 UTC
- State changed from new to open
committed this log format.
log is written to rundeck.jobs.log
-

Deleted User 2011-05-18 18:20:22 UTC
- Milestone order changed from 25 to 0
(from [c75303b8f38c9c69ea97f229bf7da7b222051bb1]) Add log of job changes [#266]
merge 1.3 change to 1.2.1 [#294]
https://github.com/dtolabs/rundeck/commit/c75303b8f38c9c69ea97f229b... -

-

-

Greg Schueler 2011-06-03 16:33:05 UTC
- State changed from open to needs_verification
-

Alex-SF 2011-06-08 09:29:11 UTC
- Tag set to audit, jobs
- State changed from needs_verification to resolved
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
(DEPRECATED) Please use github issues for issue tracking at http://github.com/dtolabs/rundeck/issues
People watching this ticket
Referenced by
-
266
Log job modifications
(from [c449812f3955a427ffdd6196c4be3b5a4116fe22])
Add log...
-
294
Log job modifications
Reference
http://rundeck.lighthouseapp.com/projects/5927...
-
294
Log job modifications
(from [c75303b8f38c9c69ea97f229bf7da7b222051bb1])
Add log...
-
266
Log job modifications
(from [c75303b8f38c9c69ea97f229bf7da7b222051bb1])
Add log...
-
266
Log job modifications
(from [261dd777f17fbbce50f65d2dc75c27ccca8d0b21])
Fix typ...
-
266
Log job modifications
(from [5a164c6888f86a96a64af083ba894f3c046afaab])
Fix typ...