How journal observation works and where the log got persist ? | Community
Skip to main content
October 16, 2015
Solved

How journal observation works and where the log got persist ?

  • October 16, 2015
  • 7 replies
  • 2336 views

Hi,

Where the Journal log are stored in cq5 server and is it implicitly configure or it has to be configure explicitly as asynchronous observation ?

Please provide sample to  configure the journal observation in JCR.

 

Thanks in advance

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Sham_HC

It stores in the form of data tar file at <cq_home>/crx-quickstart/repository/tarJournal.  You can configure different general or custom built one in repository.xml.  OOB configarable options for tar journal at http://dev.day.com/docs/en/cq/current/core/administering/persistence_managers.html#Journal

7 replies

Sham_HC
Sham_HCAccepted solution
Level 10
October 16, 2015

It stores in the form of data tar file at <cq_home>/crx-quickstart/repository/tarJournal.  You can configure different general or custom built one in repository.xml.  OOB configarable options for tar journal at http://dev.day.com/docs/en/cq/current/core/administering/persistence_managers.html#Journal

October 16, 2015

Sham HC wrote...

It stores in the form of data tar file at <cq_home>/crx-quickstart/repository/tarJournal.  You can configure different general or custom built one in repository.xml.  OOB configarable options for tar journal at http://dev.day.com/docs/en/cq/current/core/administering/persistence_managers.html#Journal

 

Thanks

 

 I already referred that location but it seems it doesn't have any readable information.

What type of information the journal contains and how to capture it through program.

Suggest me a samples

joerghoh
Adobe Employee
Adobe Employee
October 16, 2015

The journal is not supposed to be used by other components than the repository itself.

Jörg

October 16, 2015

Jörg Hoh wrote...

The journal is not supposed to be used by other components than the repository itself.

Jörg

 


Yes.

But how we captured those information and use it for further process .

What type of information journal have ?

Thanks

joerghoh
Adobe Employee
Adobe Employee
October 16, 2015

Why do you want to process the journal data? There is no API to access this data from outside of Jackrabbit/CRX, it's an implementation detail.

Jörg

Level 6
October 16, 2015

Jörg Hoh wrote...

Why do you want to process the journal data? There is no API to access this data from outside of Jackrabbit/CRX, it's an implementation detail.

Jörg

 


I ask the same question as Jörg. Why do you want to analyze the journal? Data masturbation?

Ove

October 16, 2015

Jörg Hoh wrote...

Why do you want to process the journal data? There is no API to access this data from outside of Jackrabbit/CRX, it's an implementation detail.

Jörg

 


We have api javax.jcr.observation.ObservationManager through this we can access the jcr api from external environment.

some like that

  ObservationManager observationManager = session.getWorkspace().getObservationManager();
            
            EventJournal eventJournal = session.getWorkspace().getObservationManager().getEventJournal();
            
            while(eventJournal.hasNext()){

                Event event = eventJournal.nextEvent();
                System.out.println("userdata"+event.getUserData());
                System.out.println("Event:::"+event.getPath());
                System.out.println("User ID"+event.getUserID());

 

But my question here is what kind of information journal contains about jcr repository.

Whether it is useful for tracking the changes made by user in jcr it may be field level,user level and node level change . All  can be done through JCR async observation.

Purpose of journal observation ????

 

Thanks