Skip to content

Commit

Permalink
Merge pull request #131 from fluent-plugins-nursery/fix-windows-td-ag…
Browse files Browse the repository at this point in the history
…ent-path

MSI: Use ENV['TD_AGENT_TOPDIR'] to specify install directory
  • Loading branch information
cosmo0920 committed Jul 10, 2020
2 parents fed6999 + df5eb17 commit 05299e4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions td-agent/templates/opt/td-agent/share/td-agent.conf.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,20 @@
auto_create_table
<buffer>
@type file
<% if windows? %>
path "#{ENV['TD_AGENT_TOPDIR']}/var/log/<%= project_name %>/buffer/td"
<% else %>
path /var/log/<%= project_name %>/buffer/td
<% end %>
</buffer>

<secondary>
@type file
<% if windows? %>
path "#{ENV['TD_AGENT_TOPDIR']}/var/log/<%= project_name %>/failed_records"
<% else %>
path /var/log/<%= project_name %>/failed_records
<% end %>
</secondary>
</match>

Expand Down

0 comments on commit 05299e4

Please sign in to comment.