Skip to content

second try: patch to use a more syslog like logging format which can better be read by external scripts and log analysing programs. - #1623

Closed
j-ed wants to merge 1 commit into
owncloud:masterfrom
j-ed:master
Closed

j-ed wants to merge 1 commit into
owncloud:masterfrom
j-ed:master

Conversation

@j-ed

@j-ed j-ed commented Feb 11, 2013

Copy link
Copy Markdown
Contributor

Don't merge this! - This is scheduled for 6.0

patch to use a more syslog like logging format which can better be read by external scripts and log analysing programs.

patch to use a more syslog like logging format which can better be read by external scripts and log analysing programs.
@karlitschek

Copy link
Copy Markdown
Contributor

I'm very sorry to say that but we are in feature freeze now. So we can't merge that for ownCloud 5. ownCloud 6 is planed 3 month after ownCloud 5

@j-ed

j-ed commented Feb 11, 2013

Copy link
Copy Markdown
Contributor Author

I'm very sorry to say that but we are in feature freeze now. So we
can't merge that for ownCloud 5. ownCloud 6 is planed 3 month after
ownCloud 5

Good to hear that ownCloud 5 will come out soon. I think it doesn't
matter if this will be in v5 or v6 because it will give me time to
add an additional log format check so that ownCloud will not mix-up
the 'old' and the 'new' log format.
Where would the best place to add such a check when it should only
be run once after ownCloud has been updated?

@karlitschek

Copy link
Copy Markdown
Contributor

There is a way to add a migration script between version. You can use an update.php script. See https://github.com/owncloud/core/blob/master/apps/files/appinfo/update.php as example

@j-ed

j-ed commented Feb 11, 2013

Copy link
Copy Markdown
Contributor Author

There is a way to add a migration script between version. You can use an
update.php script. See
https://github.com/owncloud/core/blob/master/apps/files/appinfo/update.php
as example

If I understood the example right, that function is by default app
specific, which means for the 'files' app only, isn't it?
Or is the files app used as a dummy to collect all ownCloud relevant
updates?

@karlitschek

Copy link
Copy Markdown
Contributor

You are right. This is only for apps. There is something similar for ownCloud updates but I don't remember it at the moment. But it is definitely possible.

@bartv2

bartv2 commented Feb 14, 2013

Copy link
Copy Markdown
Contributor

Maybe switch to MonoLog for the logging engine, this has also support for more output formats. See https://github.com/Seldaek/monolog/

@eMerzh

eMerzh commented Mar 5, 2013

Copy link
Copy Markdown
Contributor

@bartv2 I'm all in for monolog ! ....
i had a start of an app for that ... but if someone is willing to put it as the default thing .. i can help :)

@laryllian

Copy link
Copy Markdown

@versioning: Why not 5.1 or so first? Do you want to have OC16 in two years? ;-)

@jancborchardt

Copy link
Copy Markdown
Contributor

5 is out now, so what’s the verdict on this @karlitschek?

@karlitschek

Copy link
Copy Markdown
Contributor

Yes. 👍 from me.

@eMerzh

eMerzh commented Apr 9, 2013

Copy link
Copy Markdown
Contributor

i'm 👎 here.... for me, it's better if we could stick with json but setting only the date in a readable format...
seems to me to be a good compromise

@j-ed

j-ed commented Apr 10, 2013

Copy link
Copy Markdown
Contributor Author

@eMerzh:

i'm 👎 here.... for me, it's better if we could stick with json but
setting only the date in a readable format...
seems to me to be a good compromise

Log file in general should be human readable and should be align to the
syslog format or the format of an apache web server otherwise it's not
possible to automatically analyse its content with other programs like
Fail2Ban etc..
From my point of view the only reason why the json format has been
choosen is to easily display it in the GUI but that is not the way
how administrators are going to monitor big systems.

@eMerzh

eMerzh commented Apr 10, 2013

Copy link
Copy Markdown
Contributor

@j-ed : For me Json is reasonably enough human readable,
it allows us to easily display it in the interface,
it allow to create or add new fields and new info without breaking everything
it allow to be parsed and computed easily with another tool like logstash or gelf

and it really easy to make/use a tool in any language to parse json and print it's content as plain text ..... the other way around might be really hard

@bantu

bantu commented May 16, 2013

Copy link
Copy Markdown

Monolog, please. :-)

@bartv2

bartv2 commented Jul 5, 2013

Copy link
Copy Markdown
Contributor

Mostly fixed by #2975, also should now be done with Monolog

@bartv2 bartv2 closed this Jul 5, 2013
@lock lock Bot locked as resolved and limited conversation to collaborators Aug 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants