You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 21, 2024. It is now read-only.
@@ -11,7 +11,7 @@ To wrap up, this package provides:
11
11
- a parser which works on streams for syslog with [octet counting](https://tools.ietf.org/html/rfc5425#section-4.3) framing technique, see [octetcounting](/cotentcounting)
12
12
- a parser which works on streams for syslog with [non-transparent](https://tools.ietf.org/html/rfc6587#section-3.4.2) framing technique, see [nontransparent](/nontransparent)
13
13
14
-
This library provides the pieces to parse syslog messages transported following various RFCs.
14
+
This library provides the pieces to parse Syslog messages transported following various RFCs.
15
15
16
16
For example:
17
17
@@ -67,7 +67,7 @@ This results in `m` being equal to:
67
67
// })
68
68
```
69
69
70
-
And `e` being equal to `nil`, since the `i` byte slice contains a perfectly valid RFC5424 message.
70
+
And `e` being equal to `nil` since the `i` byte slice contains a perfectly valid RFC5424 message.
71
71
72
72
### Best effort mode
73
73
@@ -167,9 +167,9 @@ This library provide stream parsers for both.
167
167
168
168
### Octet counting
169
169
170
-
In short, [RFC5425](https://tools.ietf.org/html/rfc5425#section-4.3) and [RFC6587](https://tools.ietf.org/html/rfc6587), aside from the protocol considerations, describe a **transparent framing** technique for syslog messages that uses the **octect counting** technique - ie., the message lenght of the incoming message.
170
+
In short, [RFC5425](https://tools.ietf.org/html/rfc5425#section-4.3) and [RFC6587](https://tools.ietf.org/html/rfc6587), aside from the protocol considerations, describe a **transparent framing** technique for Syslog messages that uses the **octect counting** technique - ie., the message length of the incoming message.
171
171
172
-
Each syslog message is sent with a prefix representing the number of bytes it is made of.
172
+
Each Syslog message is sent with a prefix representing the number of bytes it is made of.
173
173
174
174
The [octecounting package](./octetcounting) parses messages stream following such rule.
175
175
@@ -188,7 +188,7 @@ To quickly understand how to use it please have a look at the [example file](./n
188
188
Things we do not support:
189
189
190
190
- trailers other than `LF` or `NUL`
191
-
-trailer which length is greater than 1 byte
191
+
-trailers which length is greater than 1 byte
192
192
- trailer change on a frame-by-frame basis
193
193
194
194
## Performances
@@ -202,38 +202,39 @@ make bench
202
202
On my machine<sup>[1](#mymachine)</sup> this are the results obtained paring RFC5424 syslog messages with best effort mode on.
Other RFC5424 implementations, like this [one](https://github.com/roguelazer/rust-syslog-rfc5424) in Rust, spend 8µs to parse an average legal message.
234
235
235
-
_TBD: comparation against other golang parsers_.
236
+
_TBD: comparison against other Go parsers_.
236
237
237
238
---
238
239
239
-
* <aname="mymachine">[1]</a>: Intel Core i7-7600U CPU @ 2.80GHz
240
+
* <aname="mymachine">[1]</a>: Intel Core i7-8850H CPU @ 2.60GHz
0 commit comments