Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MSI: Use ENV['TD_AGENT_TOPDIR'] to specify install directory #131

Merged
merged 1 commit into from
Jul 10, 2020

Conversation

kenhys
Copy link
Contributor

@kenhys kenhys commented Jul 10, 2020

On windows, /var/... may creates C:/var, so it should be
ENV['TD_AGENT_TOPDIR'] (typically c:/opt/td-agent) prepended.

On windows, /var/... may creates C:/var, so it should be
ENV['TD_AGENT_TOPDIR'] (typically c:/opt/td-agent) prepended.
@kenhys
Copy link
Contributor Author

kenhys commented Jul 10, 2020

After starting service, /var is created under C:/opt/td-agent/var.

image

@kenhys kenhys marked this pull request as ready for review July 10, 2020 02:45
@kenhys kenhys requested a review from cosmo0920 July 10, 2020 02:45
@kenhys
Copy link
Contributor Author

kenhys commented Jul 10, 2020

On buster: no ENV['TD_AGENT_TOPDIR'] prepended.

% cat /etc/td-agent/td-agent.conf | head -n 30
####
## Output descriptions:
##

# Treasure Data (http://www.treasure-data.com/) provides cloud based data
# analytics platform, which easily stores and processes data from td-agent.
# FREE plan is also provided.
# @see http://docs.fluentd.org/articles/http-to-td
#
# This section matches events whose tag is td.DATABASE.TABLE
<match td.*.*>
  @type tdlog
  @id output_td
  apikey YOUR_API_KEY

  auto_create_table
  <buffer>
    @type file
    path /var/log/td-agent/buffer/td
  </buffer>

  <secondary>
    @type file
    path /var/log/td-agent/failed_records
  </secondary>
</match>

## match tag=debug.** and dump to console
<match debug.**>
  @type stdout

Copy link
Contributor

@cosmo0920 cosmo0920 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 👍

@cosmo0920 cosmo0920 merged commit 05299e4 into master Jul 10, 2020
@cosmo0920 cosmo0920 deleted the fix-windows-td-agent-path branch July 10, 2020 02:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants