Skip to content

Commit

Permalink
java-module: Only accept tail for OpenSearch
Browse files Browse the repository at this point in the history
  • Loading branch information
ish-hcc committed Oct 14, 2024
1 parent 53e2928 commit 7c9a95f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ private void configureOutputs(String nsId, String mciId, String targetId, String
if (plugin.getName().equals("opensearch")){
itemCreateInfo.setPluginConfig(" urls = [\"http://"+ myIp + ":9200\"]\n" +
" index_name = \"mc-o11y\"\n" +
" template_name = \"telegraf\"");
" template_name = \"mc-o11y\"\n" +
" namepass = [\"tail\"]");
} else if (plugin.getName().equals("tail")) {
itemCreateInfo.setPluginConfig(" files = [\"/var/log/syslog\"]\n" +
" from_beginning = false\n" +
Expand Down

0 comments on commit 7c9a95f

Please sign in to comment.