The Wayback Machine - https://web.archive.org/web/20201003142235/https://github.com/pranayVyas/jsontocef
Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 

README.md

JSON TO CEF CONVERTOR

Description

The program converts JSON to CEF. This was built to generate CEF events to be passed to arcsight from Metron. Download the contents and perform mvn install.

To run as standalone

java -classpath jsontocef-V1.1.jar org.hortonworks.com.jsontocef.CefWriter

To call from other class

  • CefWriter cf = new CefWriter(Path json to cef property file)
  • String CEFDATA = cf.jsonToCef(String jsondata);

Parameters required are

  • argument1: path to json to cef properties file.

  • argument2: path or array of json objects. multiline json is not supported.

  • argument4: output directory to write cef file.

  • The program can run as individual job or can be called.

CEF HEADERS

By default the program will look for below fields for CEF HEADERS

  • CEF Version - hardcoded to be "CEF:0"
  • deviceVendor
  • deviceProduct
  • deviceVersion
  • deviceEvent
  • Name
  • severity

CEF:0|deviceVendor|deviceProduct|deviceVersion|deviceEvent|Name|severity| If your JSON field names for headers are different than above, you can modify the code in CefWriter.java between lines 141-156

About

convert your JSON events to CEF format

Topics

Resources

License

Releases

No releases published

Packages

No packages published

Languages

You can’t perform that action at this time.