Skip to content

Nginx and node.js logs, new Elasticsearch alternative #7491

Answered by jszwedko
anutator asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @anutator !

Thanks for checking out Vector! Some answers:

  1. I haven't tested OpenSearch, but I imagine it'll work based on its claim of API compatibility: https://opensearch.org/faq/#q1.8
  2. You could approach this multiple ways. You could change your nginx logs to JSON, as you noted, or you can use their default text format and use the parse_nginx_logs) function in VRL. You can use VRL to transform (parse, modify, etc.) using the remap transform..
  3. Yes, you can ingest logs from files using the file source. You would just point it at the directory containing the log files.
  4. Correct, vector will only collect data while it is running. You can use systemd, as you mentioned, to run it as a servi…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jszwedko
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants