elastic / ecs-dotnet

https://www.elastic.co/guide/en/ecs-logging/dotnet/current/setup.html
Apache License 2.0
114 stars 58 forks source link

Is it possible to write to elastic from log4net using this library ? #358

Closed MalkaGit closed 3 months ago

MalkaGit commented 7 months ago

ECS integration/library project(s) (e.g. Elastic.CommonSchema.Serilog):

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like A clear and concise description of what you want to happen.

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here.

thompson-tomo commented 6 months ago

@MalkaGit have u taken a look at https://github.com/elastic/ecs-dotnet/blob/main/src/Elastic.CommonSchema.Log4net/README.md which talks about the options.

pumikiPum commented 6 months ago

Thank you so much for your replay .

few short questions:

  1. Is the lib official?
  2. Is there a way to select only some of the field s , to improve computation and network time ?
    1. Are there any known issues about js performance of the lib ?
    1. I am responsible for handling the name of the index (table) to which the data will be written to Elasticsearch. Correct ?
    1. Is there any best practice regarding the index name ? Eg, separate index per day
  3. thank you so much

thompson-tomo commented 6 months ago

@pumikiPum yes it is an official library by Elastic. The library by default populates values into a number of properties which can not be controlled.

I can not comment on performance.

In relation to indexes, I would suggest you look at: https://www.elastic.co/blog/what-is-an-elasticsearch-index but I would keep your indexes minimal.

Mpdreamz commented 3 months ago

Thanks for your answers @thompson-tomo I think we can close this now.