Code Monkey home page Code Monkey logo

fileagebeat's People

Watchers

 avatar  avatar

fileagebeat's Issues

FR - Improve beat schema for the file.path

Description

The file.path shows the fully qualified path of the each file that is detected (including the file name). Can there be a separate field that is part of the schema that shows the path of the folder (the path that is inputed in the configuration).

This will allow aggregation around the "path" instead of input "name".

This could be done with logstash, but I don't think that is the correct approach.

Motivation

Improve document data for reporting

Am I planning to do it myself with a PR?

No, but I can if you want me to.

Fields are not added

      fileagebeat:
        fields:
          lob: "lob"
          product: "product"
          role: "mda"
          tier: "production"

        inputs:
        - name: "testname"
          paths:
          - 'filepathshere'
          heartbeat: false
          period: 60s
          threshold: 5m
          max_depth: 1

BUG - Generating results for files not over threshold

  "_index": "fileagebeat-2020.01.23",
  "_type": "_doc",
  "_id": "2lzF0m8BMI-N80ZGT9RQ",
  "_score": 1,
  "_source": {
    "@version": "1",
    "@timestamp": "2020-01-23T14:18:59.063Z",
    "file": {
      "size": 511,
      "mtime": "2020-01-23T14:18:35.817Z",
      "mode": "-rw-rw-r--",
      "ctime": "2020-01-23T14:18:35.843Z",
      "atime": "2020-01-23T14:18:35.773Z",
      "path": "/path/filename"
    },
    "event": {
      "action": "aging_file_found"
    },
    "agent": {
      "name": "GROUP1",
      "ephemeral_id": "12770efb-68cb-4f17-9ee8-646eb938925f",
      "id": "1cad9978-6279-4d19-92c0-74bbd94a5035",
      "hostname": "XXXXXXXXXXXXXXXXXXXXXXX",
      "version": "7.2.1",
      "type": "fileagebeat"
    },
    "ingestion_time": "2020-01-23T14:18:59.000Z",
    "ecs": {
      "version": "1.0.0"
    }
  },
  "fields": {
    "@timestamp": [
      "2020-01-23T14:18:59.063Z"
    ],
    "ingestion_time": [
      "2020-01-23T14:18:59.000Z"
    ],
    "file.mtime": [
      "2020-01-23T14:18:35.817Z"
    ],
    "file.atime": [
      "2020-01-23T14:18:35.773Z"
    ],
    "file.ctime": [
      "2020-01-23T14:18:35.843Z"
    ]
  }
}
          paths:
          - '/path/'
          heartbeat: false
          period: 120s
          threshold: 15m
          max_depth: 1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.