log-collect / log-send
Giannis Galanis
giannisgalanis at gmail.com
Tue Oct 30 06:24:24 EDT 2007
Pascal,
I have been working on something similar. It is a console script that gather
networks related logs, and will be available in the next joyride.
At the moment it includes:
var/log/messages
var/log/xorg.0.log
/home/olpc.sugar.logs/presenceservice
/home/olpc.sugar.logs/gabble
/home/olpc.sugar.logs/salut
and the following info:
build
firmware
model
time
mac
ips of all interfaces
network topology
jabber server
salut or gabble
The gzipped tar is ~20kb which is pretty low.
However, other tests(for specific activites for ex.) will require other
logs.
I believe that a complete log activity should have a list of options like:
network logs
kernel logs
activities logs
all logs
...so the user can choose according to the problem
also, the activity should be able to enable All Logs, from the .xinitrc,
.sugar.debug files,
or perhaps the full kernel logs.
I was planning to add the above features in my script, but a sugar activity
is better than a console script.
Since we are working on the same thing we can use each other's help, and
create a single application.
yani
On 10/29/07, Pascal Scheffers <pascal at scheffers.net> wrote:
>
>
> I've created a rough-cut log-collector, it's in d.l.o/git/project/log-
> activity/log-collect.py
>
> For now, it just outputs some system info, tell me what's missing or
> what would be interesting to include?
>
> I don't know yet how to list installed activities... would that be
> just `ls /usr/share/activities/`? Or is there a package list?
>
> And then the main purpose: sending logs to OLPC, either using http-
> post or email or usb-stick or... but what logs should I collect? Just
> all of them? ~/.sugar/default/logs/* and /var/log/* ? Or should it be
> more selective?
>
> And some information from the journal, perhaps?
>
> What about privacy/sensitive information? Will there be any in the
> logs or system info?
>
> - Pascal
>
>
> Current log-activity.py output:
>
> bios-version: Q2C18
> uptime: 434169.21 430235.72
> wireless_mac: 00-17-C4-05-2A-58
> uuid: 8A401F4E-E312-47F9-96C8-A488C99BDA2F
> localization: ??
> kernel_version: Linux version 2.6.22-20071018.1.olpc.d4414541d2be66a
> (dilinger at fc6.laptop.org) (gcc version 4.1.1 20070105 (Red Hat
> 4.1.1-51)) #1 PREEMPT Thu Oct 18 11:44:14 EDT 2007
> diskfree: 716 MB
> laptop-info-version: 0.1
> memfree: 63496 kB
> serial-number: SHF7250025C
> disksize: 1024 MB
> keyboard: ??-??-??
> olpc_build: OLPC build joyride 58 (stream joyride; variant devel_jffs2)
> country: USA
> board-revision: B4
> motherboard-number: QTFLCA72400063
> POWER_SUPPLY_NAME=olpc-battery
> POWER_SUPPLY_TYPE=Battery
> POWER_SUPPLY_STATUS=Full
> POWER_SUPPLY_PRESENT=1
> POWER_SUPPLY_HEALTH=Good
> POWER_SUPPLY_TECHNOLOGY=LiFe
> POWER_SUPPLY_VOLTAGE_AVG=6792960
> POWER_SUPPLY_CURRENT_AVG=0
> POWER_SUPPLY_CAPACITY=97
> POWER_SUPPLY_CAPACITY_LEVEL=Full
> POWER_SUPPLY_TEMP=2508
> POWER_SUPPLY_TEMP_AMBIENT=4300
> POWER_SUPPLY_ACCUM_CURRENT=8390
> POWER_SUPPLY_MANUFACTURER=BYD
> POWER_SUPPLY_SERIAL_NUMBER=5d0d01000000daff
>
> _______________________________________________
> Devel mailing list
> Devel at lists.laptop.org
> http://lists.laptop.org/listinfo/devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.laptop.org/pipermail/devel/attachments/20071030/9ae81227/attachment.html>
More information about the Devel
mailing list