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

logagent-setup makes journald-upload receiver #239

Merged
merged 4 commits into from
Jul 20, 2020

Conversation

radu-gheorghe
Copy link
Contributor

For systemd users, you'd need a command like:

logagent-setup -i TOKEN_GOES_HERE -j

The -j part signals that we don't want to tail /var/log, but rather accept input from systemd-journal-upload. Without -j, there should be no difference.

With -j, we do the following:

  • install systemd-journal-upload if it doesn't exist (via apt-get or yum)
  • set up logagent.conf to listen to localhost:5731 (a random port) and parse journal data
  • set up journal-upload.conf to send data to localhost:5731 using the provided token
  • restart both journald-upload and logagent

For systemd users, you'd need a command like:
```
logagent-setup -i TOKEN_GOES_HERE -j
```
The `-j` part signals that we don't want to tail `/var/log`, but rather accept input from `systemd-journal-upload`. Without `-j`, there should be no difference.

With `-j`, we do the following:
- install `systemd-journal-upload` if it doesn't exist (via `apt-get` or `yum`)
- set up `logagent.conf` to listen to `localhost:5731` (a random port) and parse journal data
- set up `journal-upload.conf` to send data to `localhost:5731` using the provided token
- restart both journald-upload and logagent
@radu-gheorghe radu-gheorghe self-assigned this Jun 19, 2020
bin/logagent-setup.sh Outdated Show resolved Hide resolved
bin/logagent-setup.sh Outdated Show resolved Hide resolved
Co-authored-by: Ciprian Hacman <ciprian.hacman@sematext.com>
bin/logagent-setup.sh Outdated Show resolved Hide resolved
@otisg
Copy link
Member

otisg commented Jun 24, 2020

Ping @hakman
I think we don't need to wait for Adnan's review, as there is no new text here.

@hakman
Copy link
Contributor

hakman commented Jun 24, 2020

I already had a private chat with @radu-gheorghe and asked him to wait until Monday, maybe there is a better alternative.

@radu-gheorghe
Copy link
Contributor Author

Sounds like we can merge this? What do you think @hakman @rabbitstack @adnanrahic ?

@adnanrahic
Copy link
Contributor

I think we should merge this. 👌

@radu-gheorghe radu-gheorghe merged commit 832da5c into master Jul 20, 2020
@radu-gheorghe
Copy link
Contributor Author

merged. Thanks!

@adnanrahic adnanrahic deleted the logagent-setup-journald branch October 9, 2020 11:35
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.

5 participants