Skip to content

Releases: pcktdmp/cef

Refactored and deprecation of Generate()

01 Oct 10:20
441e32f
Compare
Choose a tag to compare

Introduced:

Validate() error                    // Validate if the CEF message is according to the specification.
String() (string, error)            // String constructs and returns a CEF message string.
Build() (CefEvent, error)           // Build constructs and returns a CEF message according to CefEvent.
Read(line string) (CefEvent, error) // Read parses a CEF message string and populates the CefEvent struct with the extracted data.
Log() error                         // Log attempts to generate a CEF message from the current CefEvent and logs it to the standard output.
escapeEventData() error             // escapeEventData will try to escape all data properly in the struct according the Common Event Format.

What's Changed

Full Changelog: v0.3.0...v0.4.0

Support reading CEF events from a line

22 Sep 13:53
6ae03cf
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.2.0...v0.3.0

Set default CEF version number and convert to int according to specification

18 Sep 11:26
b3f2fbd
Compare
Choose a tag to compare
v0.2.0

Set default CEF version number and convert to int according to specif…

Move to Go 1.14 and add go.sum

13 Mar 13:32
6e323cb
Compare
Choose a tag to compare
Add go.sum (#26)

* Add go.sum

Initial minor release

12 Mar 23:25
cc6363a
Compare
Choose a tag to compare

Supported features:

  • Generating a CEF event from public struct
  • CefEventer Interface{}
  • Log() method to generate a log message to stdout
  • Validate() to verify if mandatory CEF fields are set
  • Handling escaping characters according to the CEF format

Support predictable key/value pair sequence for the CEF Extensions

12 Mar 20:34
168b1f5
Compare
Choose a tag to compare
v0.0.5

Update example code in README (#23)

Support logging the CEF event to stdout with Log()

11 Mar 20:56
d6f2877
Compare
Choose a tag to compare

Support logging the CEF event to stdout which is particularly useful when being ran inside a container
and/or being used in conjunction with go routines.

https://stackoverflow.com/questions/19646889/why-should-i-use-log-println-instead-of-fmt-println

Introduce Interface Type CefEventer

10 Mar 21:42
d3d46f7
Compare
Choose a tag to compare

Introduce an interface that implements Generate() and Validate()

Improved checking for mandatory CEF fields

09 Mar 21:12
7a14354
Compare
Choose a tag to compare
v0.0.2

Loop over mandatory fields and verify their content (#15)

Initial release

09 Mar 15:55
fea519a
Compare
Choose a tag to compare
v0.0.1

Simple input checking for event generation (#14)