-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fix Dell EMC Powerswitch n parser (#2235)
* fix: fix Dell EMC Powerswitch n parser
- Loading branch information
1 parent
4831969
commit 74f1296
Showing
5 changed files
with
71 additions
and
50 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
21 changes: 21 additions & 0 deletions
21
package/etc/conf.d/conflib/netsource/app-netsource-dell_switch_n.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,21 @@ | ||
block parser app-netsource-dell_switch_n() { | ||
channel { | ||
rewrite { | ||
r_set_splunk_dest_default( | ||
index('netops') | ||
sourcetype('dell:emc:powerswitch:n') | ||
vendor('dellemc') | ||
product('powerswitch') | ||
class('n') | ||
); | ||
}; | ||
}; | ||
}; | ||
application app-netsource-dell_switch_n[sc4s-network-source] { | ||
filter { | ||
("${.netsource.sc4s_vendor_product}" eq "dellemc_powerswitch_n" | ||
or "${SOURCE}" eq "s_DELLEMC_POWERSWITCH_N") | ||
and "${fields.sc4s_vendor_product}" eq "" | ||
}; | ||
parser { app-netsource-dell_switch_n(); }; | ||
}; |
33 changes: 0 additions & 33 deletions
33
package/etc/conf.d/conflib/syslog/app-syslog-dell_switch_n.conf
This file was deleted.
Oops, something went wrong.
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,11 @@ | ||
application app-vps-dell_switch_n[sc4s-vps] { | ||
filter { | ||
host("test-dell-switch-n-" type(string) flags(prefix)) | ||
}; | ||
parser { | ||
p_set_netsource_fields( | ||
vendor('dellemc') | ||
product('powerswitch_n') | ||
); | ||
}; | ||
}; |
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