Nlog: When target of type is Network,how to setting index of elastic?

Created on 23 Jul 2018  路  10Comments  路  Source: NLog/NLog

The config of source code:
image
Error message:
image
elk Kibana Index:
image

external question

Most helpful comment

Maybe share the solution you found? It might help others :)

All 10 comments

I hope that I can specify different indexes according to the project.

Think you should take this to the support forum of LogStash for how to setup Index.

The NLog Network Target has no direct support for configuration of index (As you have discovered yourself).

Think you should take this to the support forum of LogStash for how to setup Index.

Agree on this. We won't maintain Kibina/Logstash.

Closing this as we haven't the knowledge to help you on this one.

OK, I have solved it. Thank you very much

Maybe share the solution you found? It might help others :)

Hi @moyuanhui ,

Could you please share your solution for enabling index for Elastic Search. I am trying the same for Splunk index

Hi @snakefoot

Thanks for your response.

I am trying to do the Network target but with UDP protocol.

xsi:type="Network"
name="Splunk"
address="udp://:"
newLine="true"
layout="${level}|${logger}|${message}|{exception:format=tostring}">

However am not able to view any logs in splunk.

The problem is, I have a custom index created in splunk, not a default one.

How can I mention the index part in NLog network target configuration?

@sujivisva This place is mostly issue about NLog, and not so much about communication-protocols with random external-systems like Splunk or Elastic. Maybe try Splunk-support-forum or StackOverflow?

Hi @snakefoot ,

Thanks.!

This particular topic is about what I am trying to do exactly. And @moyuanhui has mentioned that he has solved the problem. Thats why trying to get his solution.

Was this page helpful?
0 / 5 - 0 ratings