1---
2last_modified_on: "2020-07-13"
3title: Install Vector On Windows
4sidebar_label: Windows
5description: Install Vector on Windows
6---
7
8import CodeExplanation from '@site/src/components/CodeExplanation';
9import ConfigExample from '@site/src/components/ConfigExample';
10import DaemonDiagram from '@site/src/components/DaemonDiagram';
11import InstallationCommand from '@site/src/components/InstallationCommand';
12import Steps from '@site/src/components/Steps';
13import Tabs from '@theme/Tabs';
14import TabItem from '@theme/TabItem';
15
16This document will cover installing Vector on Windows.
17
18<!--
19     THIS FILE IS AUTOGENERATED!
20
21     To make changes please edit the template located at:
22
23     website/docs/setup/installation/operating-systems/windows.md.erb
24-->
25
26## Install
27
28<Tabs
29  block={true}
30  defaultValue="daemon"
31  values={[{"label":"As a Daemon","value":"daemon"}]}>
32<TabItem value="daemon">
33
34The [daemon deployment strategy][docs.strategies#daemon] is designed for data
35collection on a single host. Vector runs in the background, in its own process,
36collecting _all_ data for that host.
37Typically data is collected from a process manager, such as Journald via
38Vector's [`journald` source][docs.sources.journald], but can be collected
39through any of Vector's [sources][docs.sources].
40The following diagram demonstrates how it works.
41
42<DaemonDiagram
43  platformName={null}
44  sourceName={null}
45  sinkName={null} />
46
47---
48
49<Tabs
50  centered={true}
51  className={"rounded"}
52  defaultValue={"msi"}
53  placeholder="Please choose an installation method..."
54  select={false}
55  size={null}
56  values={[{"group":"Package managers","label":"MSI","value":"msi"},{"group":"Nones","label":"Vector CLI","value":"vector-cli"},{"group":"Platforms","label":"Docker CLI","value":"docker-cli"},{"group":"Platforms","label":"Docker Compose","value":"docker-compose"}]}>
57<TabItem value="msi">
58
59<Steps headingDepth={3}>
60<Tabs
61  centered={true}
62  className="rounded"
63  defaultValue="x86_64"
64  values={[{"label":"x86_64","value":"x86_64"}]}>
65
66<TabItem value="x86_64">
67
681.  ### Download the Vector `.msi` file
69
70    ```bat
71    powershell Invoke-WebRequest https://packages.timber.io/vector/0.10.X/vector-x64.msi -OutFile vector-x64.msi
72    ```
73
74    [Looking for a specific version?][docs.package_managers.msi#versions]
75
762.  ### Install the Vector `.msi` package using `msiexec` command
77
78    ```bat
79    msiexec /i vector-x64.msi /quiet
80    ```
81
823.  ### Navigate to the Vector directory
83
84    ```bat
85    cd "C:\Program Files\Vector"
86    ```
87
884.  ### Configure Vector
89
90    <ConfigExample
91      format="toml"
92      path={"config\\vector.toml"}
93      sourceName={"file"}
94      sinkName={null} />
95
965.  ### Start Vector
97
98    ```bat
99    .\bin\vector --config config\vector.toml
100    ```
101
102</TabItem>
103</Tabs>
104</Steps>
105
106</TabItem>
107<TabItem value="vector-cli">
108
109<Steps headingDepth={3}>
110<ol>
111<li>
112
113### Install Vector
114
115<InstallationCommand />
116
117Or choose your [preferred method][docs.installation].
118
119</li>
120<li>
121
122### Configure Vector
123
124<ConfigExample
125  format="toml"
126  path={"vector.toml"}
127  sourceName={"file"}
128  sinkName={null} />
129
130</li>
131<li>
132
133### Start Vector
134
135```bash
136vector --config vector.toml
137```
138
139That's it! Simple and to the point. Hit `ctrl+c` to exit.
140
141</li>
142</ol>
143</Steps>
144
145</TabItem>
146<TabItem value="docker-cli">
147
148<Steps headingDepth={3}>
149<ol>
150<li>
151
152### Configure Vector
153
154<ConfigExample
155  format="toml"
156  path={"/etc/vector/vector.toml"}
157  sourceName={"file"}
158  sinkName={null} />
159
160</li>
161<li>
162
163### Start the Vector container
164
165```bash
166docker run \
167  -v $PWD/vector.toml:/etc/vector/vector.toml:ro \
168  -v /var/log \
169  timberio/vector:latest-alpine
170```
171
172<CodeExplanation>
173
174* The `-v $PWD/vector.to...` flag passes your custom configuration to Vector.
175* The `-v /var/log` flag ensures that Vector has access to your app's logging directory, adjust as necessary.
176* The `timberio/vector:latest-alpine` is the default image we've chosen, you are welcome to use [other image variants][docs.platforms.docker#variants].
177
178</CodeExplanation>
179
180That's it! Simple and to the point. Hit `ctrl+c` to exit.
181
182</li>
183</ol>
184</Steps>
185
186</TabItem>
187<TabItem value="docker-compose">
188
189compose!
190
191</TabItem>
192</Tabs>
193</TabItem>
194</Tabs>
195
196[docs.installation]: /docs/setup/installation/
197[docs.package_managers.msi#versions]: /docs/setup/installation/package-managers/msi/#versions
198[docs.platforms.docker#variants]: /docs/setup/installation/platforms/docker/#variants
199[docs.sources.journald]: /docs/reference/sources/journald/
200[docs.sources]: /docs/reference/sources/
201[docs.strategies#daemon]: /docs/setup/deployment/strategies/#daemon
202