1--- 2last_modified_on: "2020-07-13" 3title: Install Vector On Raspbian 4sidebar_label: Raspbian 5description: Install Vector On Raspbian 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 Raspbian. 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/raspbian.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={"vector-cli"} 53 placeholder="Please choose an installation method..." 54 select={false} 55 size={null} 56 values={[{"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="vector-cli"> 58 59<Steps headingDepth={3}> 60<ol> 61<li> 62 63### Install Vector 64 65<InstallationCommand /> 66 67Or choose your [preferred method][docs.installation]. 68 69</li> 70<li> 71 72### Configure Vector 73 74<ConfigExample 75 format="toml" 76 path={"vector.toml"} 77 sourceName={"journald"} 78 sinkName={null} /> 79 80</li> 81<li> 82 83### Start Vector 84 85```bash 86vector --config vector.toml 87``` 88 89That's it! Simple and to the point. Hit `ctrl+c` to exit. 90 91</li> 92</ol> 93</Steps> 94 95</TabItem> 96<TabItem value="docker-cli"> 97 98<Steps headingDepth={3}> 99<ol> 100<li> 101 102### Configure Vector 103 104<ConfigExample 105 format="toml" 106 path={"/etc/vector/vector.toml"} 107 sourceName={"journald"} 108 sinkName={null} /> 109 110</li> 111<li> 112 113### Start the Vector container 114 115```bash 116docker run \ 117 -v $PWD/vector.toml:/etc/vector/vector.toml:ro \ 118 timberio/vector:latest-alpine 119``` 120 121<CodeExplanation> 122 123* The `-v $PWD/vector.to...` flag passes your custom configuration to Vector. 124* The `timberio/vector:latest-alpine` is the default image we've chosen, you are welcome to use [other image variants][docs.platforms.docker#variants]. 125 126</CodeExplanation> 127 128That's it! Simple and to the point. Hit `ctrl+c` to exit. 129 130</li> 131</ol> 132</Steps> 133 134</TabItem> 135<TabItem value="docker-compose"> 136 137compose! 138 139</TabItem> 140</Tabs> 141</TabItem> 142</Tabs> 143 144[docs.installation]: /docs/setup/installation/ 145[docs.platforms.docker#variants]: /docs/setup/installation/platforms/docker/#variants 146[docs.sources.journald]: /docs/reference/sources/journald/ 147[docs.sources]: /docs/reference/sources/ 148[docs.strategies#daemon]: /docs/setup/deployment/strategies/#daemon 149