Logstash BeatsParser$InvalidFrameProtocolException - elasticsearch

i have filebeat version 1.3.1 (amd64)
and logstash 6.3.2
Ok so i was getting ssl error at filebeat host ,
Feb 14 17:26:49 dca-cos1-v-ap002 /usr/bin/filebeat[21994]: transport.go:125: SSL client failed to connect with: dial tcp i/o timeout
So i delete tls section from filebeat.yml and in logstash.yml i set ssl => false
Now im geeting this error:
Error below:
Feb 14 17:38:03 PLEUDTLOG01 logstash[8099]: [2020-02-14T17:38:03,066][INFO ][org.logstash.beats.BeatsHandler] [local: 10.48.1.216:5044, remote: 10.48.1.218:45104] Handling exception: org.logstash.beats.BeatsParser$InvalidFrameProtocolException: Invalid Frame Type, received: 1
Feb 14 17:38:03 PLEUDTLOG01 logstash[8099]: [2020-02-14T17:38:03,066][WARN ][io.netty.channel.DefaultChannelPipeline] An exceptionCaught() event was fired, and it reached at the tail of the pipeline. It usually means the last handler in the pipeline did not handle the exception.
Feb 14 17:38:03 PLEUDTLOG01 logstash[8099]: io.netty.handler.codec.DecoderException: org.logstash.beats.BeatsParser$InvalidFrameProtocolException: Invalid Frame Type, received: 1
Feb 14 17:38:03 PLEUDTLOG01 logstash[8099]: at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:459) ~[netty-all-4.1.18.Final.jar:4.1.18.Final]
Feb 14 17:38:03 PLEUDTLOG01 logstash[8099]: at io.netty.handler.codec.ByteToMessageDecoder.channelInputClosed(ByteToMessageDecoder.java:392) ~[netty-all-4.1.18.Final.jar:4.1.18.Final]
Feb 14 17:38:03 PLEUDTLOG01 logstash[8099]: at io.netty.handler.codec.ByteToMessageDecoder.channelInputClosed(ByteToMessageDecoder.java:359) ~[netty-all-4.1.18.Final.jar:4.1.18.Final]
Feb 14 17:38:03 PLEUDTLOG01 logstash[8099]: at io.netty.handler.codec.ByteToMessageDecoder.channelInactive(ByteToMessageDecoder.java:342) ~[netty-all-4.1.18.Final.jar:4.1.18.Final]
Feb 14 17:38:03 PLEUDTLOG01 logstash[8099]: at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:245) ~[netty-all-4.1.18.Final.jar:4.1.18.Final]
Feb 14 17:38:03 PLEUDTLOG01 logstash[8099]: at io.netty.channel.AbstractChannelHandlerContext.access$300(AbstractChannelHandlerContext.java:38) ~[netty-all-4.1.18.Final.jar:4.1.18.Final]
Feb 14 17:38:03 PLEUDTLOG01 logstash[8099]: at io.netty.channel.AbstractChannelHandlerContext$4.run(AbstractChannelHandlerContext.java:236) ~[netty-all-4.1.18.Final.jar:4.1.18.Final]
Feb 14 17:38:03 PLEUDTLOG01 logstash[8099]: at io.netty.util.concurrent.DefaultEventExecutor.run(DefaultEventExecutor.java:66) ~[netty-all-4.1.18.Final.jar:4.1.18.Final]
Feb 14 17:38:03 PLEUDTLOG01 logstash[8099]: at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858) [netty-all-4.1.18.Final.jar:4.1.18.Final]
Feb 14 17:38:03 PLEUDTLOG01 logstash[8099]: at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) [netty-all-4.1.18.Final.jar:4.1.18.Final]
Feb 14 17:38:03 PLEUDTLOG01 logstash[8099]: at java.lang.Thread.run(Thread.java:748) [?:1.8.0_181]
Feb 14 17:38:03 PLEUDTLOG01 logstash[8099]: Caused by: org.logstash.beats.BeatsParser$InvalidFrameProtocolException: Invalid Frame Type, received: 1
Feb 14 17:38:03 PLEUDTLOG01 logstash[8099]: at org.logstash.beats.BeatsParser.decode(BeatsParser.java:92) ~[logstash-input-beats-5.0.16.jar:?]
Feb 14 17:38:03 PLEUDTLOG01 logstash[8099]: at io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:489) ~[netty-all-4.1.18.Final.jar:4.1.18.Final]
Feb 14 17:38:03 PLEUDTLOG01 logstash[8099]: at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:428) ~[netty-all-4.1.18.Final.jar:4.1.18.Final]
Feb 14 17:38:03 PLEUDTLOG01 logstash[8099]: ... 10 more
Feb 14 17:39:03 PLEUDTLOG01 logstash[8099]: [2020-02-14T17:39:03,066][INFO ][org.logstash.beats.BeatsHandler] [local: 10.48.1.216:5044, remote: 10.48.1.218:45106] Handling exception: org.logstash.beats.BeatsParser$InvalidFrameProtocolException: Invalid Frame Type, received: 3
Feb 14 17:39:03 PLEUDTLOG01 logstash[8099]: [2020-02-14T17:39:03,067][WARN ][io.netty.channel.DefaultChannelPipeline] An exceptionCaught() event was fired, and it reached at the tail of the pipeline. It usually means the last handler in the pipeline did not handle the exception.
Feb 14 17:39:03 PLEUDTLOG01 logstash[8099]: io.netty.handler.codec.DecoderException: org.logstash.beats.BeatsParser$InvalidFrameProtocolException: Invalid Frame Type, received: 3
Feb 14 17:39:03 PLEUDTLOG01 logstash[8099]: at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:459) ~[netty-all-4.1.18.Final.jar:4.1.18.Final]
Feb 14 17:39:03 PLEUDTLOG01 logstash[8099]: at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:265) ~[netty-all-4.1.18.Final.jar:4.1.18.Final]
Feb 14 17:39:03 PLEUDTLOG01 logstash[8099]: at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) ~[netty-all-4.1.18.Final.jar:4.1.18.Final]
Feb 14 17:39:03 PLEUDTLOG01 logstash[8099]: at io.netty.channel.AbstractChannelHandlerContext.access$600(AbstractChannelHandlerContext.java:38) ~[netty-all-4.1.18.Final.jar:4.1.18.Final]
Feb 14 17:39:03 PLEUDTLOG01 logstash[8099]: at io.netty.channel.AbstractChannelHandlerContext$7.run(AbstractChannelHandlerContext.java:353) ~[netty-all-4.1.18.Final.jar:4.1.18.Final]
Any idea what im doing wrong?
this logstash and filebeat was working some time ago

This I have also faced and here is solution.
You need to specify the right input in the Logstash pipleline.
for example if you are using filebeat then use following:
input {
beats {
port => 5044
}
}
If you are using the TCP for the springboot or any live feed then use
input {
tcp {
port => 5043
codec => "json_lines"
}
}
if you are sending both then configure both.
input {
tcp {
port => 5043
codec => "json_lines"
}
beats {
port => 5044
}
}

Related

Can't start elasticsearch service on centos 7

I just install the elasticsearch but when I try to start is not work. Anyone have any idea what I can do?
sudo journalctl --unit elasticsearch
-- Logs begin at Sat 2020-08-29 09:54:58 UTC, end at Sat 2020-08-29 13:15:35 UTC. --
Aug 29 10:10:28 meriadoc.dallas-idc.com systemd[1]: Starting Elasticsearch...
Aug 29 10:10:35 meriadoc.dallas-idc.com systemd-entrypoint[3579]: fatal error in thread [main], exiting
Aug 29 10:10:35 meriadoc.dallas-idc.com systemd-entrypoint[3579]: java.lang.NoClassDefFoundError: Could not initialize class com.sun.jna.Native
Aug 29 10:10:35 meriadoc.dallas-idc.com systemd-entrypoint[3579]: at org.elasticsearch.systemd.Libsystemd.lambda$static$0(Libsystemd.java:34)
Aug 29 10:10:35 meriadoc.dallas-idc.com systemd-entrypoint[3579]: at java.base/java.security.AccessController.doPrivileged(AccessController.java:312)
Aug 29 10:10:35 meriadoc.dallas-idc.com systemd-entrypoint[3579]: at org.elasticsearch.systemd.Libsystemd.<clinit>(Libsystemd.java:33)
Aug 29 10:10:35 meriadoc.dallas-idc.com systemd-entrypoint[3579]: at org.elasticsearch.systemd.SystemdPlugin.sd_notify(SystemdPlugin.java:126)
Aug 29 10:10:35 meriadoc.dallas-idc.com systemd-entrypoint[3579]: at org.elasticsearch.systemd.SystemdPlugin.onNodeStarted(SystemdPlugin.java:137)
Aug 29 10:10:35 meriadoc.dallas-idc.com systemd-entrypoint[3579]: at java.base/java.util.ArrayList.forEach(ArrayList.java:1510)
Aug 29 10:10:35 meriadoc.dallas-idc.com systemd-entrypoint[3579]: at org.elasticsearch.node.Node.start(Node.java:868)
Aug 29 10:10:35 meriadoc.dallas-idc.com systemd-entrypoint[3579]: at org.elasticsearch.bootstrap.Bootstrap.start(Bootstrap.java:317)
Aug 29 10:10:35 meriadoc.dallas-idc.com systemd-entrypoint[3579]: at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:402)
Aug 29 10:10:35 meriadoc.dallas-idc.com systemd-entrypoint[3579]: at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:170)
Aug 29 10:10:35 meriadoc.dallas-idc.com systemd-entrypoint[3579]: at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:161)
Aug 29 10:10:35 meriadoc.dallas-idc.com systemd-entrypoint[3579]: at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86)
Aug 29 10:10:35 meriadoc.dallas-idc.com systemd-entrypoint[3579]: at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:127)
Aug 29 10:10:35 meriadoc.dallas-idc.com systemd-entrypoint[3579]: at org.elasticsearch.cli.Command.main(Command.java:90)
Aug 29 10:10:35 meriadoc.dallas-idc.com systemd-entrypoint[3579]: at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:126)
Aug 29 10:10:35 meriadoc.dallas-idc.com systemd-entrypoint[3579]: at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:92)
Aug 29 10:10:35 meriadoc.dallas-idc.com systemd[1]: elasticsearch.service: main process exited, code=exited, status=1/FAILURE
Aug 29 10:10:35 meriadoc.dallas-idc.com systemd[1]: Failed to start Elasticsearch.
Aug 29 10:10:35 meriadoc.dallas-idc.com systemd[1]: Unit elasticsearch.service entered failed state.
Thank you so much
If you notice carefully the error message in startup logs, which seems to cause the startup failure.
Aug 29 10:10:35 meriadoc.dallas-idc.com systemd-entrypoint[3579]:
java.lang.NoClassDefFoundError: Could not initialize class
com.sun.jna.Native
Please follow the https://www.jetbrains.com/help/upsource/error-could-not-initialize-class-com-sun-jna-native.html#8182b, which explained in detail the cause of the error and 2 ways to resolve that.

dovecot: lmtp: Error: fatal error: failed to reserve page summary memory

after updating from ubuntu 18 to 20
started getting this on running golang binary from sieve rules file
Sep 17 08:54:00 mailserver spamd[3231]: spamd: connection from ::1 [::1]:57844 to port 783, fd 5
Sep 17 08:54:00 mailserver spamd[3231]: spamd: setuid to Debian-exim succeeded
Sep 17 08:54:00 mailserver spamd[3231]: spamd: processing message <CANcP0tbws-r=L8KrTug_NKLk0EuPwo1vKotdpV=Pf95Pxusbww#mail.gmail.com> for Debian-exim:114
Sep 17 08:54:00 mailserver systemd-resolved[527]: Server returned error NXDOMAIN, mitigating potential DNS violation DVE-2018-0001, retrying transaction with reduced feature level UDP.
Sep 17 08:54:00 mailserver systemd-resolved[527]: message repeated 8 times: [ Server returned error NXDOMAIN, mitigating potential DNS violation DVE-2018-0001, retrying transaction with reduced feature level UDP.]
Sep 17 08:54:00 mailserver spamd[3231]: spamd: clean message (1.1/5.0) for Debian-exim:114 in 0.3 seconds, 2760 bytes.
Sep 17 08:54:00 mailserver spamd[3231]: spamd: result: . 1 - DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,RDNS_NONE,SPF_HELO_NONE,SPF_PASS scantime=0.3,size=2760,user=Debian-exim,uid=114,required_score=5.0,rhost=::1,raddr=::1,rport=57844,mid=<CANcP0tbws-r=L8KrTug_NKLk0EuPwo1vKotdpV=Pf95Pxusbww#mail.gmail.com>,autolearn=no autolearn_force=no
Sep 17 08:54:00 mailserver dovecot: lmtp(4254): Connect from local
Sep 17 08:54:00 mailserver dovecot: lmtp: Error: fatal error: failed to reserve page summary memory
Sep 17 08:54:00 mailserver dovecot: lmtp: Error:
Sep 17 08:54:00 mailserver dovecot: lmtp: Error: runtime stack:
Sep 17 08:54:00 mailserver dovecot: lmtp: Error: runtime.throw(0x1a48db5, 0x25)
Sep 17 08:54:00 mailserver dovecot: lmtp: Error: #011/usr/local/go/src/runtime/panic.go:1116 +0x72 fp=0x7ffe160d5860 sp=0x7ffe160d5830 pc=0x4ce5d2
Sep 17 08:54:00 mailserver dovecot: lmtp: Error: runtime.(*pageAlloc).sysInit(0x232c268)
Sep 17 08:54:00 mailserver dovecot: lmtp: Error: #011/usr/local/go/src/runtime/mpagealloc_64bit.go:80 +0x185 fp=0x7ffe160d58f0 sp=0x7ffe160d5860 pc=0x4c4e25
Sep 17 08:54:00 mailserver dovecot: lmtp: Error: runtime.(*pageAlloc).init(0x232c268, 0x232c260, 0x25cb8d8)
Sep 17 08:54:00 mailserver dovecot: lmtp: Error: #011/usr/local/go/src/runtime/mpagealloc.go:317 +0x75 fp=0x7ffe160d5918 sp=0x7ffe160d58f0 pc=0x4c2815
Sep 17 08:54:00 mailserver dovecot: lmtp: Error: runtime.(*mheap).init(0x232c260)
Sep 17 08:54:00 mailserver dovecot: lmtp: Error: #011/usr/local/go/src/runtime/mheap.go:743 +0x24b fp=0x7ffe160d5940 sp=0x7ffe160d5918 pc=0x4bf84b
Sep 17 08:54:00 mailserver dovecot: lmtp: Error: runtime.mallocinit()
Sep 17 08:54:00 mailserver dovecot: lmtp: Error: #011/usr/local/go/src/runtime/malloc.go:480 +0x109 fp=0x7ffe160d5968 sp=0x7ffe160d5940 pc=0x4a4c49
Sep 17 08:54:00 mailserver dovecot: lmtp: Error: runtime.schedinit()
Sep 17 08:54:00 mailserver dovecot: lmtp: Error: #011/usr/local/go/src/runtime/proc.go:563 +0x65 fp=0x7ffe160d59c0 sp=0x7ffe160d5968 pc=0x4d1f25
Sep 17 08:54:00 mailserver dovecot: lmtp: Error: runtime.rt0_go(0x7ffe160d5ad8, 0x2, 0x7ffe160d5ad8, 0x1813580, 0x7fd3cc8a80b3, 0x7fd3cca6cb80, 0x7ffe160d5ad8, 0x200011c00, 0x501080, 0x1813580, ...)
Sep 17 08:54:00 mailserver dovecot: lmtp: Error: #011/usr/local/go/src/runtime/asm_amd64.s:214 +0x125 fp=0x7ffe160d59c8 sp=0x7ffe160d59c0 pc=0x5011c5
Sep 17 08:54:00 mailserver dovecot: lmtp(roman)<4254></X0wOCgkY1+eEAAAgcArzw>: program exec:/usr/lib/dovecot/sieve-execute/smtp (4255): Terminated with non-zero exit code 2
Sep 17 08:54:00 mailserver dovecot: lmtp(roman)<4254></X0wOCgkY1+eEAAAgcArzw>: sieve: msgid=<CANcP0tbws-r=L8KrTug_NKLk0EuPwo1vKotdpV=Pf95Pxusbww#mail.gmail.com>: stored mail into mailbox 'Unsubscribe.Neighbors'
Sep 17 08:54:00 mailserver dovecot: lmtp(4254): Disconnect from local: Client has quit the connection (state=READY)
Sep 17 08:55:01 mailserver CRON[4257]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
here is sieve rules:
require ["variables", "fileinto", "mailbox", "vnd.dovecot.execute"];
if address :matches "from" "*" { set "from" "${1}"; }
if anyof ( header :contains "subject" "unsubscribe neighbours",
header :contains "subject" "unsubscribe neighbors") {
execute "smtp" "-neighbors=${from}";
fileinto :create "Unsubscribe.Neighbors";
} elsif address :contains "from" ["mailer-daemon", "postmaster", "internet mail delivery"] {
if header :matches "X-Failed-Recipients" "*" {
execute "smtp" "-email=${1}";
fileinto :create "Mail Delivery System";
} else {
fileinto :create "Mail Delivery System.Warning";
}
} else {
# The rest goes into INBOX
# default is "implicit keep", we do it explicitly here
keep;
}
Attempted in /etc/dovecot/conf.d/90-sieve.conf vsz_limit = 256M with no luck
Can somebody help me in fixing it?
For anyone who might stumble upon the same issue:
It seems this is caused by a change in memory allocator code in Golang 1.14 and higher - see Go issue.
I have been able to circumvent it by setting vsz_limit of lmtp process to 768MB.
Finally just rewrote go to rust :( and everything works.

golang/glog created hundreds of tiny files on my server

I am using glog in my app that is deployed in a docker container and it has created hundreds of tiny files and I am wondering why and how to stop it. Here is a small sample of my directory listing.
-rw-r--r--. 1 urbncat urbncat 20 Jun 27 18:40 InventoryProcessor.32c423b6e305.urbncat.log.INFO.20170626-134018.246-1498528861.gz-1498536061.gz-1498546861.gz-1498550462.gz-1498582862.gz-1498590064.gz-1498608095.gz
-rw-r--r--. 1 urbncat urbncat 20 Jun 27 20:14 InventoryProcessor.32c423b6e305.urbncat.log.INFO.20170626-134018.246-1498528861.gz-1498536061.gz-1498546861.gz-1498550462.gz-1498582862.gz-1498590064.gz-1498611709.gz
-rw-r--r--. 1 urbncat urbncat 0 Jun 27 23:34 InventoryProcessor.32c423b6e305.urbncat.log.INFO.20170626-134018.246-1498528861.gz-1498536061.gz-1498546861.gz-1498550462.gz-1498586462.gz-1498593665.gz
-rw-r--r--. 1 urbncat urbncat 20 Jun 27 18:40 InventoryProcessor.32c423b6e305.urbncat.log.INFO.20170626-134018.246-1498528861.gz-1498536061.gz-1498546861.gz-1498550462.gz-1498586462.gz-1498593665.gz-1498604479.gz
-rw-r--r--. 1 urbncat urbncat 20 Jun 27 18:40 InventoryProcessor.32c423b6e305.urbncat.log.INFO.20170626-134018.246-1498528861.gz-1498536061.gz-1498546861.gz-1498550462.gz-1498586462.gz-1498593665.gz-1498608095.gz
-rw-r--r--. 1 urbncat urbncat 20 Jun 27 20:14 InventoryProcessor.32c423b6e305.urbncat.log.INFO.20170626-134018.246-1498528861.gz-1498536061.gz-1498546861.gz-1498550462.gz-1498586462.gz-1498593665.gz-1498611709.gz
-rw-r--r--. 1 urbncat urbncat 0 Jun 27 23:34 InventoryProcessor.32c423b6e305.urbncat.log.INFO.20170626-134018.246-1498528861.gz-1498536061.gz-1498546861.gz-1498550462.gz-1498590064.gz-1498597268.gz
-rw-r--r--. 1 urbncat urbncat 54 Jun 27 14:04 InventoryProcessor.32c423b6e305.urbncat.log.INFO.20170626-134018.246-1498528861.gz-1498536061.gz-1498546861.gz-1498550462.gz-1498590064.gz-1498597268.gz-1498604479.gz
-rw-r--r--. 1 urbncat urbncat 20 Jun 27 14:04 InventoryProcessor.32c423b6e305.urbncat.log.INFO.20170626-134018.246-1498528861.gz-1498536061.gz-1498546861.gz-1498550462.gz-1498590064.gz-1498597268.gz-1498608095.gz
-rw-r--r--. 1 urbncat urbncat 20 Jun 27 20:14 InventoryProcessor.32c423b6e305.urbncat.log.INFO.20170626-134018.246-1498528861.gz-1498536061.gz-1498546861.gz-1498550462.gz-1498590064.gz-1498597268.gz-1498611709.gz

Need to take only one entry pertaining to particular name as in first column and iterate over the file

I have a file called Files1 which has below data, where i Need to take only the line (entire line) which has all the column entries (ie $1...to ..$12) and iterate over the file..
example: for name "testvnc02" it should only print below line as it has all the fields of its name and ignore rest of the line and take another name and do the same.
testvnc02 out: anders pts/83 192.168.87.1 Mon Feb 20
00:31 - 01:04 00:33
[testvnc02 ] out:
[testvnc02 ] out:
[testvnc02 ] out:
testvnc02 out:
testvnc02 out: anders pts/83 192.168.87.1 Mon Feb 20 00:31 - 01:04 00:33
testvnc02 out: curtist pts/1927 192.202.45.84 Thu Feb 9 17:54 - 19:55 02:00
testvnc02 out: curtist pts/1928 :32.0 Thu Feb 9 17:56 still logged in
testvnc02 out: echolu pts/82 :13 Tue Feb 14 01:07 still logged in
testvnc02 out: echolu pts/83 :13.0 Tue Feb 14 01:08 - 01:23 3+00:14
testvnc02 out: garimas pts/71 test-garimas.caden Fri Feb 17 02:22 - 03:23 01:01
testvnc02 out: garimas pts/71 test-garimas.caden Sun Feb 12 22:54 - 00:04 01:09
testvnc02 out: garimas pts/83 test-garimas.caden Mon Feb 20 01:39 - 02:39 01:00
testvnc02 out: garimas pts/84 test-garimas.caden Tue Feb 14 04:46 - 05:48 01:01
testvnc02 out: hjyu pts/87 testvnc02:28.0 Wed Feb 8 16:30 still logged in
testvnc02 out: hongshaw pts/17 192.168.222.27 Tue Feb 7 21:39 - 03:52 06:13
testvnc02 out: npitla pts/4 :4.0 Fri Feb 192 00:55 - 07:30 2+06:35
testvnc02 out: npitla pts/4 :4.0 Sun Feb 12 07:30 - 22:54 3+15:24
testvnc02 out: npitla pts/4 :4.0 Tue Feb 7 21:36 - 00:55 2+03:18
testvnc02 out: npitla pts/71 :4.0 Fri Feb 192 02:49 - 03:36 00:47
testvnc02 out: npitla pts/71 :4.0 Mon Feb 13 09:58 - 22:54 2+12:55
testvnc02 out: npitla pts/71 :4.0 Sun Feb 12 07:21 - 07:25 00:03
testvnc02 out: npitla pts/71 :4.0 Tue Feb 7 22:20 - 01:30 2+03:192
testvnc02 out: npitla pts/81 :4.0 Fri Feb 192 03:24 - 03:36 00:12
testvnc02 out: npitla pts/81 :4.0 Mon Feb 13 192:02 - 22:53 2+12:51
testvnc02 out: npitla pts/81 :4.0 Tue Feb 7 22:21 - 01:30 2+03:09
testvnc02 out: npitla pts/84 :4.0 Fri Feb 192 03:32 - 03:36 00:03
testvnc02 out: npitla pts/84 :4.0 Wed Feb 8 09:24 - 00:54 1+15:30
testvnc02 out: pedro pts/89 testvcut07.perence Wed Feb 15 01:41 - 01:50 00:09
testvnc02 out: pedro pts/89 testvcut07.perence Wed Feb 15 01:52 - 01:55 00:02
testvnc02 out: ruizh pts/89 szlnx4.perence.c Wed Feb 15 21:09 - 21:55 3+00:46
testvnc02 out: sbrahma pts/71 test-sbrahma.caden Fri Feb 17 14:46 - 14:53 00:06
testvnc02 out: sonamt pts/85 test-sonamt.caden Wed Feb 8 22:21 - 23:41 01:19
testvnc02 out: sungsikh pts/1927 :29.0 Thu Feb 9 16:13 - 16:19 00:06
testvnc02 out: sungsikh pts/4 :29.0 Thu Feb 16 12:55 still logged in
testvnc02 out: tao1wang pts/1920 :31 Thu Feb 9 192:19 still logged in
testvnc02 out: tao1wang pts/1921 :31 Thu Feb 9 192:19 still logged in
testvnc02 out: tao1wang pts/1922 :31 Thu Feb 9 192:20 still logged in
testvnc02 out: tao1wang pts/1923 :31 Thu Feb 9 192:20 still logged in
testvnc02 out: tao1wang pts/1924 :31 Thu Feb 9 192:20 still logged in
testvnc02 out: tao1wang pts/1925 :31 Thu Feb 9 192:21 still logged in
testvnc02 out: tao1wang pts/85 192.168.12.43 Thu Feb 9 08:59 - 09:22 00:23
testvnc02 out: tao1wang pts/85 :31 Thu Feb 9 192:17 still logged in
testvnc02 out: tao1wang pts/90 :31 Thu Feb 9 09:00 still logged in
testvnc02 out: tao1wang pts/91 :31 Thu Feb 9 09:00 still logged in
testvnc02 out: tao1wang pts/92 :31 Thu Feb 9 09:00 still logged in
testvnc02 out: tao1wang pts/93 :31 Thu Feb 9 09:00 still logged in
testvnc02 out: tao1wang pts/94 :31 Thu Feb 9 09:00 still logged in
testvnc02 out: tao1wang pts/95 :31 Thu Feb 9 09:00 still logged in
testvnc02 out: tao1wang pts/96 :31 Thu Feb 9 09:00 still logged in
testvnc02 out: tao1wang pts/97 :31 Thu Feb 9 09:00 still logged in
testvnc02 out: tao1wang pts/98 :31 Thu Feb 9 192:18 still logged in
testvnc02 out: tao1wang pts/99 :31 Thu Feb 9 192:18 still logged in
testvnc02 out: vsanjay pts/71 :12 Sun Feb 19 23:06 still logged in
testvnc02 out: vsanjay pts/81 :12 Sun Feb 19 23:06 still logged in
testvnc02 out: vsanjay pts/88 :12 Wed Feb 15 01:30 still logged in
testvnc02 out: yulizhu pts/0 :14.0 Wed Feb 8 09:192 - 11:50 02:40
testvnc02 out: yulizhu pts/0 :14.0 Wed Feb 8 11:50 - 12:192 00:19
testvnc02 out: yulizhu pts/1926 :14.0 Thu Feb 9 11:04 - 17:38 5+06:33
testvnc02 out: yulizhu pts/17 :14.0 Wed Feb 8 09:11 - 09:12 00:01
testvnc02 out: yulizhu pts/58 :14.0 Wed Feb 8 09:13 - 11:49 02:36
testvnc02 out: yulizhu pts/71 :14.0 Fri Feb 192 12:50 - 12:52 00:01
testvnc02 out: yulizhu pts/71 :14.0 Fri Feb 192 13:25 - 13:27 00:02
testvnc02 out: yulizhu pts/84 :14.0 Tue Feb 14 17:38 - 19:11 01:33
testvnc02 out: yulizhu pts/84 :14.0 Tue Feb 14 19:18 still logged in
testvnc02 out: yulizhu pts/85 :14.0 Wed Feb 8 11:49 - 16:20 04:31
testvnc02 out: yulizhu pts/85 :14.0 Wed Feb 8 16:20 - 18:31 02:192
testvnc02 out: yulizhu pts/87 :14.0 Wed Feb 8 12:12 - 14:20 02:08
testvnc02 out: yulizhu pts/87 :14.0 Wed Feb 8 14:20 - 16:20 01:59
testvnc02 out: yulizhu pts/88 :14.0 Thu Feb 9 11:46 - 22:05 192:19
testvnc02 out: yulizhu pts/88 :14.0 Tue Feb 14 18:21 - 19:26 01:04
testvnc02 out: yulizhu pts/88 :14.0 Wed Feb 8 16:03 - 16:192 00:07
testvnc02 out: yulizhu pts/88 :14.0 Wed Feb 8 16:19 - 16:20 00:01
testvnc02 out: yulizhu pts/88 :14.0 Wed Feb 8 17:12 - 11:04 17:52
testvnc02 out: yulizhu pts/89 :14.0 Wed Feb 8 18:27 - 17:38 5+23:11
[testvnc04] out:
[testvnc04] out:
testvnc04 out: amitv pts/22 textnntv.cadenc Mon Feb 20 02:14 - 03:14 01:00
testvnc04 out: amitv pts/27 textnntv.cadenc Sun Feb 12 20:55 - 21:56 01:00
testvnc04 out: amitv pts/50 textnntv.cadenc Thu Feb 16 09:29 - 192:29 01:00
testvnc04 out: amitv pts/50 textnntv.cadenc Tue Feb 14 21:55 - 22:55 01:00
testvnc04 out: amyluo pts/22 192.16833.221.89 Sun Feb 19 21:42 - 22:53 01:192
testvnc04 out: amyluo pts/23 :3.0 Sun Feb 19 21:43 still logged in
testvnc04 out: amyluo pts/24 :3.0 Sun Feb 19 21:43 still logged in
testvnc04 out: amyluo pts/25 :3.0 Sun Feb 19 21:43 still logged in
testvnc04 out: amyluo pts/26 :3.0 Sun Feb 12 01:01 - 21:41 7+20:39
testvnc04 out: amyluo pts/26 :3.0 Sun Feb 19 21:43 still logged in
testvnc04 out: amyluo pts/56 192.16833.221.89 Sun Feb 19 21:40 - 21:41 00:01
testvnc04 out: amyluo pts/56 :3.0 Sun Feb 19 21:43 still logged in
testvnc04 out: amyluo pts/57 :3.0 Sun Feb 19 21:43 still logged in
testvnc04 out: dclor pts/27 192.202.45.91 Sun Feb 12 16:42 - 17:43 01:00
testvnc04 out: dclor pts/28 :4 Sun Feb 12 16:43 still logged in
testvnc04 out: dclor pts/29 :4 Sun Feb 12 16:43 still logged in
testvnc04 out: dclor pts/49 :4 Mon Feb 13 17:13 still logged in
testvnc04 out: dclor pts/51 :4 Tue Feb 14 08:32 still logged in
testvnc04 out: dclor pts/9 :4 Mon Feb 20 13:28 still logged in
testvnc04 out: horeftis pts/48 test-horeftis.cade Mon Feb 13 14:42 - 14:44 00:01
testvnc04 out: jinyi pts/27 192.16833.2192.16828 Sun Feb 12 18:36 - 18:44 00:07
testvnc04 out: jinyi pts/30 :5.0 Sun Feb 12 18:40 still logged in
testvnc04 out: joao pts/22 test-joao.perence. Mon Feb 20 04:57 still logged in
testvnc04 out: joao pts/9 :52.0 Tue Feb 14 04:29 - 06:15 01:45
testvnc04 out: joao pts/9 :52.0 Tue Feb 14 06:15 - 02:01 19:46
testvnc04 out: joao pts/9 :52.0 Wed Feb 15 02:01 - 04:58 5+02:56
testvnc04 out: jolinr pts/50 testfib240.perence Tue Feb 14 17:54 - 18:05 00:192
testvnc04 out: jolinr pts/52 :6.0 Tue Feb 14 17:56 still logged in
testvnc04 out: jolinr pts/53 :6 Tue Feb 14 17:56 still logged in
testvnc04 out: jolinr pts/56 :6 Thu Feb 16 18:08 - 18:44 00:36
testvnc04 out: jolinr pts/57 :6 Thu Feb 16 18:11 - 18:44 00:33
testvnc04 out: jolinr pts/58 :6 Thu Feb 16 18:20 - 18:44 00:23
testvnc04 out: jolinr pts/59 :6 Thu Feb 16 18:22 - 18:44 00:22
testvnc04 out: jxie pts/22 vm1lnx3.perence. Mon Feb 20 00:27 - 00:42 00:15
testvnc04 out: jxie pts/56 vm1lnx3.perence. Fri Feb 17 01:52 - 04:08 02:16
testvnc04 out: jxie pts/56 vm1lnx3.perence. Fri Feb 17 08:57 - 09:27 00:29
testvnc04 out: jxie pts/56 vm1lnx3.perence. Fri Feb 17 192:19 - 11:41 01:21
testvnc04 out: jxie pts/56 vm1lnx3.perence. Fri Feb 17 21:59 - 23:00 01:00
testvnc04 out: jxie pts/56 vm1lnx3.perence. Sat Feb 18 01:36 - 01:45 00:09
testvnc04 out: jxie pts/56 vm1lnx3.perence. Sat Feb 18 06:41 - 11:17 04:36
testvnc04 out: jxie pts/56 vm1lnx3.perence. Sun Feb 19 18:53 - 19:56 01:03
testvnc04 out: jxie pts/56 vm1lnx3.perence. Thu Feb 16 21:37 - 00:15 02:38
testvnc04 out: jxie pts/57 vm1lnx3.perence. Fri Feb 17 09:04 - 09:27 00:22
testvnc04 out: jxie pts/57 vm1lnx3.perence. Sat Feb 18 06:44 - 192:18 03:33
testvnc04 out: jxie pts/58 vm1lnx3.perence. Mon Feb 20 02:25 - 18:38 16:12
testvnc04 out: jxie pts/60 vm1lnx3.perence. Thu Feb 16 18:31 - 18:51 00:20
testvnc04 out: kitagawa pts/21 :48.0 Sun Feb 12 06:47 still logged in
testvnc04 out: kitagawa pts/27 :48.0 Mon Feb 13 01:12 still logged in
testvnc04 out: kitagawa pts/48 :48.0 Mon Feb 13 16:54 still logged in
testvnc04 out: kitagawa pts/50 cdtest135.perence. Wed Feb 15 01:48 - 02:48 01:00
testvnc04 out: kitagawa pts/54 :51.0 Thu Feb 16 15:32 still logged in
testvnc04 out: kitagawa pts/59 :48.0 Mon Feb 20 15:34 still logged in
testvnc04 out: kmchow pts/31 test-kmchow.cadenc Mon Feb 13 09:54 still logged in
testvnc04 out: kmchow pts/32 :99 Mon Feb 13 09:55 still logged in
testvnc04 out: kmchow pts/33 :99 Mon Feb 13 09:55 still logged in
testvnc04 out: kmchow pts/34 :99 Mon Feb 13 09:55 still logged in
testvnc04 out: kmchow pts/35 :99 Mon Feb 13 09:55 still logged in
testvnc04 out: kmchow pts/36 :99 Mon Feb 13 09:55 still logged in
testvnc04 out: kmchow pts/37 :99 Mon Feb 13 09:55 still logged in
testvnc04 out: kmchow pts/38 :99 Mon Feb 13 09:55 still logged in
testvnc04 out: kmchow pts/39 :99 Mon Feb 13 09:55 still logged in
testvnc04 out: kmchow pts/40 :70 Mon Feb 13 09:56 - 192:02 00:05
testvnc04 out: kmchow pts/40 :70 Mon Feb 13 192:02 still logged in
testvnc04 out: kmchow pts/41 :70 Mon Feb 13 09:56 - 192:02 00:05
testvnc04 out: kmchow pts/41 :70 Mon Feb 13 192:02 still logged in
testvnc04 out: kmchow pts/42 :70 Mon Feb 13 09:56 - 192:02 00:05
testvnc04 out: kmchow pts/42 :70 Mon Feb 13 192:02 still logged in
testvnc04 out: kmchow pts/43 :70 Mon Feb 13 09:56 - 192:02 00:05
testvnc04 out: kmchow pts/43 :70 Mon Feb 13 192:02 still logged in
testvnc04 out: kmchow pts/44 :70 Mon Feb 13 09:56 - 192:02 00:05
testvnc04 out: kmchow pts/44 :70 Mon Feb 13 192:02 still logged in
testvnc04 out: kmchow pts/45 :70 Mon Feb 13 09:56 - 192:02 00:05
testvnc04 out: kmchow pts/45 :70 Mon Feb 13 192:02 still logged in
testvnc04 out: kmchow pts/46 :70 Mon Feb 13 09:56 - 192:02 00:05
testvnc04 out: kmchow pts/46 :70 Mon Feb 13 192:02 still logged in
testvnc04 out: kmchow pts/47 :70 Mon Feb 13 09:56 - 192:02 00:05
testvnc04 out: kmchow pts/47 :70 Mon Feb 13 192:02 still logged in
testvnc04 out: kmchow pts/55 :70.0 Thu Feb 16 16:192 still logged in
testvnc04 out: sanubhav pts/56 test-sanubhav.cad Sun Feb 19 00:44 - 00:49 00:05
testvnc04 out: trr pts/50 fmf.perence. Mon Feb 13 22:32 - 14:16 15:43
testvnc04 out: trr pts/50 testvnc04:2.0 Thu Feb 16 14:37 still logged in
testvnc05 out:
testvnc05 out:
testvnc05 out: harman pts/169 :pts/338:S.0 Mon Feb 20 00:55 - 06:19 05:24
testvnc05 out: harman pts/270 :pts/331:S.0 Sun Feb 19 21:43 - 03:51 06:07
testvnc05 out: harman pts/271 :pts/331:S.2 Sun Feb 19 21:43 - 03:51 06:07
testvnc05 out: harman pts/291 :pts/331:S.3 Sun Feb 19 21:43 - 03:51 06:07
testvnc05 out: harman pts/318 :pts/338:S.2 Mon Feb 20 04:04 - 06:19 02:15
testvnc05 out: harman pts/329 :pts/338:S.1 Mon Feb 20 00:55 - 06:19 05:24
testvnc05 out: harman pts/331 192.168.47.44 Sun Feb 19 21:43 - 03:51 06:08
testvnc05 out: harman pts/334 :pts/331:S.1 Sun Feb 19 23:06 - 03:51 04:45
testvnc05 out: harman pts/338 192.168.47.44 Mon Feb 20 00:54 - 06:19 05:25
testvnc05 out: kitagawa pts/302 :24.0 Sun Feb 19 22:20 still logged in
testvnc05 out: kitagawa pts/50 :24.0 Mon Feb 20 18:59 still logged in
testvnc05 out: kvishnu pts/1925 :pts/332:S.4 Mon Feb 20 00:19 - 02:04 01:44
testvnc05 out: kvishnu pts/1925 :pts/332:S.4 Mon Feb 20 02:45 - 03:54 01:08
testvnc05 out: kvishnu pts/1925 :pts/332:S.4 Sun Feb 19 22:27 - 23:33 01:06
testvnc05 out: kvishnu pts/1925 :pts/78:S.4 Sun Feb 19 192:28 - 11:08 00:39
testvnc05 out: kvishnu pts/1927 :pts/332:S.0 Mon Feb 20 00:19 - 02:04 01:44
testvnc05 out: kvishnu pts/1927 :pts/332:S.0 Mon Feb 20 02:45 - 03:54 01:08
testvnc05 out: kvishnu pts/1927 :pts/332:S.0 Sun Feb 19 22:27 - 23:33 01:06
testvnc05 out: kvishnu pts/1192 :pts/332:S.1 Mon Feb 20 00:19 - 02:04 01:44
testvnc05 out: kvishnu pts/1192 :pts/332:S.1 Mon Feb 20 02:45 - 03:54 01:08
testvnc05 out: kvishnu pts/1192 :pts/332:S.1 Sun Feb 19 22:27 - 23:33 01:06
testvnc05 out: kvishnu pts/1192 :pts/78:S.1 Sun Feb 19 192:28 - 11:08 00:39
testvnc05 out: kvishnu pts/113 :pts/332:S.2 Mon Feb 20 00:19 - 02:04 01:44
testvnc05 out: kvishnu pts/113 :pts/332:S.2 Mon Feb 20 02:45 - 03:54 01:08
testvnc05 out: kvishnu pts/113 :pts/332:S.2 Sun Feb 19 22:27 - 23:33 01:06
testvnc05 out: kvishnu pts/113 :pts/78:S.2 Sun Feb 19 192:28 - 11:08 00:39
testvnc05 out: kvishnu pts/129 :pts/332:S.5 Mon Feb 20 00:19 - 02:04 01:44
testvnc05 out: kvishnu pts/129 :pts/332:S.5 Mon Feb 20 02:45 - 03:54 01:08
testvnc05 out: kvishnu pts/129 :pts/332:S.5 Sun Feb 19 22:27 - 23:33 01:06
testvnc05 out: kvishnu pts/129 :pts/78:S.5 Sun Feb 19 192:28 - 11:08 00:39
testvnc05 out: kvishnu pts/138 :pts/332:S.6 Mon Feb 20 00:19 - 02:04 01:44
Solution with awk or shell any one will be okay.
How about a simple:
awk 'NF == 12' File1

How to debug this condition of "eth2: tx hang 1 detected on queue 11, resetting adapter"?

I want to send sk_buff by "dev_queue_xmit", when I just send 2 packets, the network card may be hang.
I want to know how to debug this condition.
the /var/log/messages is:
[root#10g-host2 test]# tail -f /var/log/messages
Sep 29 10:38:22 10g-host2 acpid: waiting for events: event logging is off
Sep 29 10:38:23 10g-host2 acpid: client connected from 2018[68:68]
Sep 29 10:38:23 10g-host2 acpid: 1 client rule loaded
Sep 29 10:38:24 10g-host2 automount[2210]: lookup_read_master: lookup(nisplus): couldn't locate nis+ table auto.master
Sep 29 10:38:24 10g-host2 mcelog: failed to prefill DIMM database from DMI data
Sep 29 10:38:24 10g-host2 xinetd[2246]: xinetd Version 2.3.14 started with libwrap loadavg labeled-networking options compiled in.
Sep 29 10:38:24 10g-host2 xinetd[2246]: Started working: 0 available services
Sep 29 10:38:25 10g-host2 abrtd: Init complete, entering main loop
Sep 29 10:39:41 10g-host2 kernel: vmalloc mmap_buf=ffffc90016e29000 mmap_size=4096
Sep 29 10:39:41 10g-host2 kernel: insmod module wsmmap successfully!
Sep 29 10:39:49 10g-host2 kernel: mmap_buf + 1024 is ffffc90016e29400
Sep 29 10:39:49 10g-host2 kernel: data ffffc90016e2942a, len is 42
Sep 29 10:39:49 10g-host2 kernel: udp data ffffc90016e29422
Sep 29 10:39:49 10g-host2 kernel: ip data ffffc90016e2940e
Sep 29 10:39:49 10g-host2 kernel: eth data ffffc90016e29400
Sep 29 10:39:49 10g-host2 kernel: h_source is ffffc90016e29406, dev_addr is ffff880c235c4750, len is 6result is 0
Sep 29 10:39:50 10g-host2 kernel: mmap_buf + 1024 is ffffc90016e29400
Sep 29 10:39:50 10g-host2 kernel: data ffffc90016e2942a, len is 42
Sep 29 10:39:50 10g-host2 kernel: udp data ffffc90016e29422
Sep 29 10:39:50 10g-host2 kernel: ip data ffffc90016e2940e
Sep 29 10:39:50 10g-host2 kernel: eth data ffffc90016e29400
Sep 29 10:39:50 10g-host2 kernel: h_source is ffffc90016e29406, dev_addr is ffff880c235c4750, len is 6result is 0
Sep 29 10:39:52 10g-host2 kernel: ixgbe 0000:03:00.0: eth2: Detected Tx Unit Hang
Sep 29 10:39:52 10g-host2 kernel: Tx Queue <11>
Sep 29 10:39:52 10g-host2 kernel: TDH, TDT <0>, <5>
Sep 29 10:39:52 10g-host2 kernel: next_to_use <5>
Sep 29 10:39:52 10g-host2 kernel: next_to_clean <0>
Sep 29 10:39:52 10g-host2 kernel: ixgbe 0000:03:00.0: eth2: tx_buffer_info[next_to_clean]
Sep 29 10:39:52 10g-host2 kernel: time_stamp <fffd3dd8>
Sep 29 10:39:52 10g-host2 kernel: jiffies <fffd497f>
Sep 29 10:39:52 10g-host2 kernel: ixgbe 0000:03:00.0: eth2: tx hang 1 detected on queue 11, resetting adapter
Sep 29 10:39:52 10g-host2 kernel: ixgbe 0000:03:00.0: eth2: Reset adapter
Sep 29 10:39:52 10g-host2 kernel: ixgbe 0000:03:00.0: master disable timed out
Sep 29 10:39:53 10g-host2 kernel: ixgbe 0000:03:00.0: eth2: detected SFP+: 5
Sep 29 10:39:54 10g-host2 kernel: ixgbe 0000:03:00.0: eth2: NIC Link is Up 10 Gbps, Flow Control: RX/TX
some information of my computer is:
ethtool -i eth2
driver: ixgbe
version: 3.21.2
firmware-version: 0x1bab0001
bus-info: 0000:03:00.0
supports-statistics: yes
supports-test: yes
supports-eeprom-access: yes
supports-register-dump: yes
supports-priv-flags: no
LSB Version: :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Distributor ID: CentOS
Description: CentOS release 6.5 (Final)
Release: 6.5
Codename: Final
kernel version is: 2.6.32-431.el6.x86_64
Thank you for your help.
I use vmalloc() which alloc the memory for skb->data, so this let NIC down. I fix it by use kmalloc().

Resources