Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MapStrFromJournalEntry ¶
func MapStrFromJournalEntry(ev *sdjournal.JournalEntry, cleanKeys bool, convertToNumbers bool, MoveMetadataLocation string) common.MapStr
MapStrFromJournalEntry takes a JournalD entry and converts it to an event that is more compatible with the Elasitc products. It will perform the following additional steps to an event:
- lowercase all fields (seriously, who wants to type caps all day?!?)
- remove underscores from the beginning of fields as they are reserved in ElasticSearch for metadata information
- fields that can be converted to numbers, will be converted to numbers
Types ¶
type Journalbeat ¶
type Journalbeat struct {
// contains filtered or unexported fields
}
Journalbeat is the main Journalbeat struct
Click to show internal directories.
Click to hide internal directories.