Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
syslog-ng (solucionado)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Spanish
View previous topic :: View next topic  
Author Message
pelelademadera
Veteran
Veteran


Joined: 14 Jul 2008
Posts: 1255
Location: La Plata, Argentina

PostPosted: Fri May 18, 2012 6:17 am    Post subject: syslog-ng (solucionado) Reply with quote

buenas, consulto, dejo conectado un pen a la pc, y me tira esto en /var/log/messages
Quote:
May 18 02:57:01 pelo-pc kernel: [ 1378.324201] usb-storage: queuecommand_lck called
May 18 02:57:01 pelo-pc kernel: [ 1378.324209] usb-storage: *** thread awakened.
May 18 02:57:01 pelo-pc kernel: [ 1378.324212] usb-storage: Command TEST_UNIT_READY (6 bytes)
May 18 02:57:01 pelo-pc kernel: [ 1378.324213] usb-storage: 00 00 00 00 00 00
May 18 02:57:01 pelo-pc kernel: [ 1378.324218] usb-storage: Bulk Command S 0x43425355 T 0x3d2 L 0 F 0 Trg 0 LUN 0 CL 6
May 18 02:57:01 pelo-pc kernel: [ 1378.324219] usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes
May 18 02:57:01 pelo-pc kernel: [ 1378.324303] usb-storage: Status code 0; transferred 31/31
May 18 02:57:01 pelo-pc kernel: [ 1378.324304] usb-storage: -- transfer complete
May 18 02:57:01 pelo-pc kernel: [ 1378.324305] usb-storage: Bulk command transfer result=0
May 18 02:57:01 pelo-pc kernel: [ 1378.324306] usb-storage: Attempting to get CSW...
May 18 02:57:01 pelo-pc kernel: [ 1378.324307] usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes
May 18 02:57:01 pelo-pc kernel: [ 1378.324376] usb-storage: Status code 0; transferred 13/13
May 18 02:57:01 pelo-pc kernel: [ 1378.324377] usb-storage: -- transfer complete
May 18 02:57:01 pelo-pc kernel: [ 1378.324378] usb-storage: Bulk status result = 0
May 18 02:57:01 pelo-pc kernel: [ 1378.324379] usb-storage: Bulk Status S 0x53425355 T 0x3d2 R 0 Stat 0x0
May 18 02:57:01 pelo-pc kernel: [ 1378.324381] usb-storage: scsi cmd done, result=0x0
May 18 02:57:01 pelo-pc kernel: [ 1378.324383] usb-storage: *** thread sleeping.


exactamente lo mismo, cada 2 segundos.

que es? la verdad que el pen anda barbaro, pero me molesta que queres leer el log y tenes que pasar miles de lineas como esas... millones...

hay alguna forma de filtar eso y que no valla al log? o es algun error del pen o algo x el estilo?

gracias
_________________
el pelado de la gente
------
Los habitantes de las islas Malvinas lo llaman gentoo, nombre en el que se basa la distribución GNU/Linux Gentoo, cuyo objetivo es la optimización para conseguir más rendimiento y velocidad en la ejecución.
------


Last edited by pelelademadera on Sat May 19, 2012 6:14 pm; edited 2 times in total
Back to top
View user's profile Send private message
agdg
Guru
Guru


Joined: 15 Aug 2010
Posts: 320

PostPosted: Fri May 18, 2012 11:59 am    Post subject: Reply with quote

Imagino que debe ser que la configuración de tu demonio de registro de eventos está demasiado 'verboso' (¿tal vez en debug?). No se que 'registrador' usarás, aunque los más comunes son syslog-ng y rsyslog. En mi caso uso rsyslog, y esta es la configuración que uso para messages.log:
Code:
agd-desktop agd # grep /var/log/messages /etc/rsyslog.conf
*.info;mail.none;authpriv.none;cron.none                -/var/log/messages.log

Es decir, registro todos los eventos con prioridad igual o superior a info, y desecho todos los eventos relacionados con mail, cron y logeos de root. Ese tipo de mensajes los registro en otro archivo.

PD: Creo que tuviste un lapsus al poner el título.
_________________
Antonio Guillen · USAM · Un SysAdmin Más
Back to top
View user's profile Send private message
pelelademadera
Veteran
Veteran


Joined: 14 Jul 2008
Posts: 1255
Location: La Plata, Argentina

PostPosted: Fri May 18, 2012 1:37 pm    Post subject: Reply with quote

jeje, ahi acomode, no se en que pensaba cuando puse vixie-cron...

voy a probar con ese a ver que onda, xq la verdad que el messages se llena, y realmente pierde utilidad tanta pabada que no me interesa, queres encontrar algun problema y te volves loco buscando.

gracias por el comentario
_________________
el pelado de la gente
------
Los habitantes de las islas Malvinas lo llaman gentoo, nombre en el que se basa la distribución GNU/Linux Gentoo, cuyo objetivo es la optimización para conseguir más rendimiento y velocidad en la ejecución.
------
Back to top
View user's profile Send private message
quilosaq
Veteran
Veteran


Joined: 22 Dec 2009
Posts: 1522

PostPosted: Fri May 18, 2012 2:13 pm    Post subject: Reply with quote

Quizá tengas puesto
Code:
CONFIG_USB_STORAGE_DEBUG=y
en la configuración de las fuentes del kernel.
Back to top
View user's profile Send private message
pelelademadera
Veteran
Veteran


Joined: 14 Jul 2008
Posts: 1255
Location: La Plata, Argentina

PostPosted: Fri May 18, 2012 9:19 pm    Post subject: Reply with quote

USB Mass Storage verbose debug
USB_STORAGE_DEBUG

USB announce new devices
USB_ANNOUNCE_NEW_DEVICES

eso tenia activado, ahi desactive, me tome el tiempo de chequear con:
cat .config | grep DEBUG, y salieron estos despues de desactivar esas 2 opciones:
Quote:
pelo-pc linux # cat .config | grep DEBUG
CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=y
# CONFIG_CGROUP_DEBUG is not set
# CONFIG_DEBUG_PERF_USE_VMALLOC is not set
CONFIG_SLUB_DEBUG=y
CONFIG_HAVE_DMA_API_DEBUG=y
CONFIG_X86_DEBUGCTLMSR=y
# CONFIG_PM_DEBUG is not set
# CONFIG_ACPI_EC_DEBUGFS is not set
# CONFIG_ACPI_DEBUG is not set
# CONFIG_ACPI_APEI_ERST_DEBUG is not set
# CONFIG_PCIEASPM_DEBUG is not set
# CONFIG_PCI_DEBUG is not set
# CONFIG_NETFILTER_DEBUG is not set
# CONFIG_CFG80211_REG_DEBUG is not set
# CONFIG_CFG80211_DEBUGFS is not set
# CONFIG_MAC80211_DEBUGFS is not set
# CONFIG_MAC80211_DEBUG_MENU is not set
# CONFIG_DEBUG_DRIVER is not set
CONFIG_DEBUG_DEVRES=y
# CONFIG_PNP_DEBUG_MESSAGES is not set
CONFIG_SCSI_MVSAS_DEBUG=y
# CONFIG_SCSI_DEBUG is not set
CONFIG_DM_DEBUG=y
# CONFIG_RT2X00_DEBUG is not set
# CONFIG_I2C_DEBUG_CORE is not set
# CONFIG_I2C_DEBUG_ALGO is not set
# CONFIG_I2C_DEBUG_BUS is not set
# CONFIG_POWER_SUPPLY_DEBUG is not set
# CONFIG_HWMON_DEBUG_CHIP is not set
# CONFIG_VIDEO_ADV_DEBUG is not set
# CONFIG_SND_DEBUG is not set
# CONFIG_USB_DEBUG is not set
# CONFIG_USB_XHCI_HCD_DEBUGGING is not set
# CONFIG_USB_STORAGE_DEBUG is not set
# CONFIG_EDAC_DEBUG is not set
# CONFIG_RTC_DEBUG is not set
# CONFIG_EXT4_DEBUG is not set
# CONFIG_JBD_DEBUG is not set
# CONFIG_JBD2_DEBUG is not set
# CONFIG_NTFS_DEBUG is not set
CONFIG_DEBUG_FS=y
# CONFIG_DEBUG_SECTION_MISMATCH is not set
CONFIG_DEBUG_KERNEL=y
# CONFIG_DEBUG_SHIRQ is not set
# CONFIG_SCHED_DEBUG is not set
# CONFIG_DEBUG_OBJECTS is not set
# CONFIG_SLUB_DEBUG_ON is not set
# CONFIG_DEBUG_KMEMLEAK is not set
CONFIG_DEBUG_PREEMPT=y
# CONFIG_DEBUG_RT_MUTEXES is not set
# CONFIG_DEBUG_SPINLOCK is not set
# CONFIG_DEBUG_MUTEXES is not set
# CONFIG_DEBUG_LOCK_ALLOC is not set
# CONFIG_DEBUG_ATOMIC_SLEEP is not set
# CONFIG_DEBUG_LOCKING_API_SELFTESTS is not set
CONFIG_DEBUG_STACK_USAGE=y
# CONFIG_DEBUG_KOBJECT is not set
CONFIG_DEBUG_BUGVERBOSE=y
# CONFIG_DEBUG_INFO is not set
# CONFIG_DEBUG_VM is not set
# CONFIG_DEBUG_VIRTUAL is not set
# CONFIG_DEBUG_WRITECOUNT is not set
CONFIG_DEBUG_MEMORY_INIT=y
# CONFIG_DEBUG_LIST is not set
# CONFIG_DEBUG_SG is not set
# CONFIG_DEBUG_NOTIFIERS is not set
# CONFIG_DEBUG_CREDENTIALS is not set
# CONFIG_DEBUG_BLOCK_EXT_DEVT is not set
# CONFIG_DEBUG_FORCE_WEAK_PER_CPU is not set
# CONFIG_DEBUG_PER_CPU_MAPS is not set
# CONFIG_DEBUG_PAGEALLOC is not set
# CONFIG_DYNAMIC_DEBUG is not set
# CONFIG_DMA_API_DEBUG is not set
CONFIG_DEBUG_STACKOVERFLOW=y
CONFIG_DEBUG_RODATA=y
# CONFIG_DEBUG_RODATA_TEST is not set
# CONFIG_DEBUG_SET_MODULE_RONX is not set
CONFIG_DEBUG_NX_TEST=m
# CONFIG_IOMMU_DEBUG is not set
CONFIG_DEBUG_BOOT_PARAMS=y
# CONFIG_CPA_DEBUG is not set
# CONFIG_DEBUG_STRICT_USER_COPY_CHECKS is not set
# CONFIG_DEBUG_NMI_SELFTEST is not set
CONFIG_KEYS_DEBUG_PROC_KEYS=y



y lo deje asi:
Quote:
pelo-pc linux # cat .config | grep DEBUG
CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=y
# CONFIG_CGROUP_DEBUG is not set
CONFIG_SLUB_DEBUG=y
CONFIG_HAVE_DMA_API_DEBUG=y
CONFIG_X86_DEBUGCTLMSR=y
# CONFIG_PM_DEBUG is not set
# CONFIG_ACPI_EC_DEBUGFS is not set
# CONFIG_ACPI_DEBUG is not set
# CONFIG_ACPI_APEI_ERST_DEBUG is not set
# CONFIG_PCIEASPM_DEBUG is not set
# CONFIG_NETFILTER_DEBUG is not set
# CONFIG_CFG80211_REG_DEBUG is not set
# CONFIG_MAC80211_DEBUG_MENU is not set
# CONFIG_PNP_DEBUG_MESSAGES is not set
# CONFIG_RT2X00_DEBUG is not set
# CONFIG_I2C_DEBUG_CORE is not set
# CONFIG_I2C_DEBUG_ALGO is not set
# CONFIG_I2C_DEBUG_BUS is not set
# CONFIG_POWER_SUPPLY_DEBUG is not set
# CONFIG_HWMON_DEBUG_CHIP is not set
# CONFIG_VIDEO_ADV_DEBUG is not set
# CONFIG_SND_DEBUG is not set
# CONFIG_USB_DEBUG is not set
# CONFIG_USB_XHCI_HCD_DEBUGGING is not set
# CONFIG_USB_STORAGE_DEBUG is not set
# CONFIG_EDAC_DEBUG is not set
# CONFIG_RTC_DEBUG is not set
# CONFIG_EXT4_DEBUG is not set
# CONFIG_NTFS_DEBUG is not set
# CONFIG_DEBUG_FS is not set
# CONFIG_DEBUG_SECTION_MISMATCH is not set
# CONFIG_DEBUG_KERNEL is not set
# CONFIG_SLUB_DEBUG_ON is not set
CONFIG_DEBUG_BUGVERBOSE=y
CONFIG_DEBUG_MEMORY_INIT=y
# CONFIG_DMA_API_DEBUG is not set
# CONFIG_DEBUG_SET_MODULE_RONX is not set
en un rato comento
_________________
el pelado de la gente
------
Los habitantes de las islas Malvinas lo llaman gentoo, nombre en el que se basa la distribución GNU/Linux Gentoo, cuyo objetivo es la optimización para conseguir más rendimiento y velocidad en la ejecución.
------
Back to top
View user's profile Send private message
agdg
Guru
Guru


Joined: 15 Aug 2010
Posts: 320

PostPosted: Sat May 19, 2012 4:40 pm    Post subject: Reply with quote

Hasta donde entiendo aunque las opciones DEBUG estén activas, no se registra nada salvo que configures el demonio syslog para que haga tal cosa. Pero también es cierto que si están todas desactivadas, independientemente de la configuración del demonio syslog, no se registrará nada.

Dos posibles soluciones a un mismo problema; evitar que el demonio syslog registre información para debugear. O impedir que el kernel genere información que pueda ser registrada por el demonio syslog.
_________________
Antonio Guillen · USAM · Un SysAdmin Más
Back to top
View user's profile Send private message
pelelademadera
Veteran
Veteran


Joined: 14 Jul 2008
Posts: 1255
Location: La Plata, Argentina

PostPosted: Sat May 19, 2012 6:14 pm    Post subject: Reply with quote

aparentemente se soluciono, si llega a volver a suceder, comento, pero ahi tengo un log medianamente coherente

Quote:
2012-05-19T15:15:00.655394-03:00 (none) kernel: usb 1-1.2: new high-speed USB device number 3 using ehci_hcd
2012-05-19T15:15:00.762386-03:00 (none) kernel: scsi6 : usb-storage 1-1.2:1.0
2012-05-19T15:15:01.765426-03:00 (none) kernel: scsi 6:0:0:0: Direct-Access Kingston DataTraveler 102 1.00 PQ: 0 ANSI: 2
2012-05-19T15:15:01.765450-03:00 (none) kernel: sd 6:0:0:0: [sdc] 15636304 512-byte logical blocks: (8.00 GB/7.45 GiB)
2012-05-19T15:15:01.766399-03:00 (none) kernel: sd 6:0:0:0: [sdc] Write Protect is off
2012-05-19T15:15:01.766418-03:00 (none) kernel: sd 6:0:0:0: [sdc] No Caching mode page present
2012-05-19T15:15:01.766421-03:00 (none) kernel: sd 6:0:0:0: [sdc] Assuming drive cache: write through
2012-05-19T15:15:01.769385-03:00 (none) kernel: sd 6:0:0:0: [sdc] No Caching mode page present
2012-05-19T15:15:01.769396-03:00 (none) kernel: sd 6:0:0:0: [sdc] Assuming drive cache: write through
2012-05-19T15:15:01.770381-03:00 (none) kernel: sdc: sdc1 sdc2
2012-05-19T15:15:01.772394-03:00 (none) kernel: sd 6:0:0:0: [sdc] No Caching mode page present
2012-05-19T15:15:01.772410-03:00 (none) kernel: sd 6:0:0:0: [sdc] Assuming drive cache: write through
2012-05-19T15:15:01.772414-03:00 (none) kernel: sd 6:0:0:0: [sdc] Attached SCSI removable disk

_________________
el pelado de la gente
------
Los habitantes de las islas Malvinas lo llaman gentoo, nombre en el que se basa la distribución GNU/Linux Gentoo, cuyo objetivo es la optimización para conseguir más rendimiento y velocidad en la ejecución.
------
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Spanish All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum