-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: extend cohesity parser (#2249)
* feat: extend cohesity parser * backward extended parser to lite
- Loading branch information
1 parent
cf7540e
commit 75f41be
Showing
4 changed files
with
91 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
package/etc/conf.d/conflib/syslog/app-syslog-cohesity_alerts.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
block parser app-syslog-cohesity_alerts() { | ||
channel { | ||
parser { | ||
json-parser( | ||
prefix('.values.') | ||
); | ||
}; | ||
rewrite { | ||
r_set_splunk_dest_default( | ||
index('infraops') | ||
sourcetype('cohesity:alerts') | ||
vendor("cohesity") | ||
product("alerts") | ||
template('t_msg_only') | ||
); | ||
}; | ||
}; | ||
}; | ||
|
||
application app-syslog-cohesity_alerts[sc4s-syslog-pgm] { | ||
filter { | ||
program("cohesity_alerts" type(string) flags(prefix)); | ||
}; | ||
parser { app-syslog-cohesity_alerts(); }; | ||
}; | ||
|
26 changes: 26 additions & 0 deletions
26
package/lite/etc/addons/cohesity/app-syslog-cohesity_alerts.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
block parser app-syslog-cohesity_alerts() { | ||
channel { | ||
parser { | ||
json-parser( | ||
prefix('.values.') | ||
); | ||
}; | ||
rewrite { | ||
r_set_splunk_dest_default( | ||
index('infraops') | ||
sourcetype('cohesity:alerts') | ||
vendor("cohesity") | ||
product("alerts") | ||
template('t_msg_only') | ||
); | ||
}; | ||
}; | ||
}; | ||
|
||
application app-syslog-cohesity_alerts[sc4s-syslog-pgm] { | ||
filter { | ||
program("cohesity_alerts" type(string) flags(prefix)); | ||
}; | ||
parser { app-syslog-cohesity_alerts(); }; | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters