Forward logs to Insight, using token based input.
Using Insight REST API gets log tokens by logset id and matches record['log']
of every record to a log name in logset
install with gem or fluent-gem command as:
$ gem install fluent-plugin-insight
$ /opt/td-agent/embedded/bin/fluent-gem install fluent-plugin-insight
<match pattern>
type insight
tags hostname,environment,application
prefix %{hostname} %{environment}-%{application}
api_key test
logset_id id
region eu
</match>
The value must be insight
.
InsightOPS logset id
InsightOPS region
List of record keys which can be retrieved from record to build a log record prefix
Prefix is added to every log record. It's a format string which uses tags
values
The default is tcp
.
Enable/disable SSL for data transfers between Fluentd and Insight. The default is true
.
Only in case you don't use SSL, the value must be 80
, 514
, or 10000
. The default is 20000
(SSL)
Number of retries on failure.
- Fork it ( http://github.com/Tweddle-SE-Team/fluent-plugin-insight/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.