Data from web Application not getting passed to ElasticSearch












0














We have a .Net web application and we were already logging to csv file. We just started logging with Elastic search. I am able to see a log on Kibana but none of the information from application added to LogEventInfo is visible here though I can see that contentLength is changed based on length of information sent. I can only see http details in Kibana for each log. Can you let me know what could be the issue.



Configuration looks like



<target name="elastic" xsi:type="BufferingWrapper" flushTimeout="5000">

<target xsi:type="ElasticSearch" uri="http://<url>:<portNumber>/">

<field name ="MachineName" layout="${machinename}" layoutType="System.String" />

</target>

</target>


Data like Machine Name is not shown on Kibana, I can see it in csv log created simultaneously.



nlog configuration. Rule in configuration section to write log



" <logger name="*" minLevel="Info" writeTo="elk" enabled="true" />" 


Data is logged using following code:



var theEvent= new LogEventInfo( logLevel,this.logger.Name,activityInfo.LogMessage // The message to log. ); 
theEvent.Properties[APPLICATION_NAME] = applicationName;
theEvent.Properties[ACTIVITY_NAME] = activityInfo.ActivityName;
this.logger.Log (theEvent); –









share|improve this question
























  • Configuration of what? How is the log data logged to ES?
    – ookboy24
    Nov 13 '18 at 4:48










  • nlog configuration. Rule in configuration section to write log " <logger name="*" minLevel="Info" writeTo="elk" enabled="true" />" Data is logged using following code: var theEvent= new LogEventInfo( logLevel,this.logger.Name,activityInfo.LogMessage // The message to log. ); theEvent.Properties[APPLICATION_NAME] = applicationName; theEvent.Properties[ACTIVITY_NAME] = activityInfo.ActivityName; this.logger.Log (theEvent);
    – Neha Srivastava
    Nov 13 '18 at 6:41
















0














We have a .Net web application and we were already logging to csv file. We just started logging with Elastic search. I am able to see a log on Kibana but none of the information from application added to LogEventInfo is visible here though I can see that contentLength is changed based on length of information sent. I can only see http details in Kibana for each log. Can you let me know what could be the issue.



Configuration looks like



<target name="elastic" xsi:type="BufferingWrapper" flushTimeout="5000">

<target xsi:type="ElasticSearch" uri="http://<url>:<portNumber>/">

<field name ="MachineName" layout="${machinename}" layoutType="System.String" />

</target>

</target>


Data like Machine Name is not shown on Kibana, I can see it in csv log created simultaneously.



nlog configuration. Rule in configuration section to write log



" <logger name="*" minLevel="Info" writeTo="elk" enabled="true" />" 


Data is logged using following code:



var theEvent= new LogEventInfo( logLevel,this.logger.Name,activityInfo.LogMessage // The message to log. ); 
theEvent.Properties[APPLICATION_NAME] = applicationName;
theEvent.Properties[ACTIVITY_NAME] = activityInfo.ActivityName;
this.logger.Log (theEvent); –









share|improve this question
























  • Configuration of what? How is the log data logged to ES?
    – ookboy24
    Nov 13 '18 at 4:48










  • nlog configuration. Rule in configuration section to write log " <logger name="*" minLevel="Info" writeTo="elk" enabled="true" />" Data is logged using following code: var theEvent= new LogEventInfo( logLevel,this.logger.Name,activityInfo.LogMessage // The message to log. ); theEvent.Properties[APPLICATION_NAME] = applicationName; theEvent.Properties[ACTIVITY_NAME] = activityInfo.ActivityName; this.logger.Log (theEvent);
    – Neha Srivastava
    Nov 13 '18 at 6:41














0












0








0







We have a .Net web application and we were already logging to csv file. We just started logging with Elastic search. I am able to see a log on Kibana but none of the information from application added to LogEventInfo is visible here though I can see that contentLength is changed based on length of information sent. I can only see http details in Kibana for each log. Can you let me know what could be the issue.



Configuration looks like



<target name="elastic" xsi:type="BufferingWrapper" flushTimeout="5000">

<target xsi:type="ElasticSearch" uri="http://<url>:<portNumber>/">

<field name ="MachineName" layout="${machinename}" layoutType="System.String" />

</target>

</target>


Data like Machine Name is not shown on Kibana, I can see it in csv log created simultaneously.



nlog configuration. Rule in configuration section to write log



" <logger name="*" minLevel="Info" writeTo="elk" enabled="true" />" 


Data is logged using following code:



var theEvent= new LogEventInfo( logLevel,this.logger.Name,activityInfo.LogMessage // The message to log. ); 
theEvent.Properties[APPLICATION_NAME] = applicationName;
theEvent.Properties[ACTIVITY_NAME] = activityInfo.ActivityName;
this.logger.Log (theEvent); –









share|improve this question















We have a .Net web application and we were already logging to csv file. We just started logging with Elastic search. I am able to see a log on Kibana but none of the information from application added to LogEventInfo is visible here though I can see that contentLength is changed based on length of information sent. I can only see http details in Kibana for each log. Can you let me know what could be the issue.



Configuration looks like



<target name="elastic" xsi:type="BufferingWrapper" flushTimeout="5000">

<target xsi:type="ElasticSearch" uri="http://<url>:<portNumber>/">

<field name ="MachineName" layout="${machinename}" layoutType="System.String" />

</target>

</target>


Data like Machine Name is not shown on Kibana, I can see it in csv log created simultaneously.



nlog configuration. Rule in configuration section to write log



" <logger name="*" minLevel="Info" writeTo="elk" enabled="true" />" 


Data is logged using following code:



var theEvent= new LogEventInfo( logLevel,this.logger.Name,activityInfo.LogMessage // The message to log. ); 
theEvent.Properties[APPLICATION_NAME] = applicationName;
theEvent.Properties[ACTIVITY_NAME] = activityInfo.ActivityName;
this.logger.Log (theEvent); –






asp.net elasticsearch logging nlog






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 13 '18 at 20:18









ookboy24

584




584










asked Nov 13 '18 at 1:38









Neha Srivastava

11




11












  • Configuration of what? How is the log data logged to ES?
    – ookboy24
    Nov 13 '18 at 4:48










  • nlog configuration. Rule in configuration section to write log " <logger name="*" minLevel="Info" writeTo="elk" enabled="true" />" Data is logged using following code: var theEvent= new LogEventInfo( logLevel,this.logger.Name,activityInfo.LogMessage // The message to log. ); theEvent.Properties[APPLICATION_NAME] = applicationName; theEvent.Properties[ACTIVITY_NAME] = activityInfo.ActivityName; this.logger.Log (theEvent);
    – Neha Srivastava
    Nov 13 '18 at 6:41


















  • Configuration of what? How is the log data logged to ES?
    – ookboy24
    Nov 13 '18 at 4:48










  • nlog configuration. Rule in configuration section to write log " <logger name="*" minLevel="Info" writeTo="elk" enabled="true" />" Data is logged using following code: var theEvent= new LogEventInfo( logLevel,this.logger.Name,activityInfo.LogMessage // The message to log. ); theEvent.Properties[APPLICATION_NAME] = applicationName; theEvent.Properties[ACTIVITY_NAME] = activityInfo.ActivityName; this.logger.Log (theEvent);
    – Neha Srivastava
    Nov 13 '18 at 6:41
















Configuration of what? How is the log data logged to ES?
– ookboy24
Nov 13 '18 at 4:48




Configuration of what? How is the log data logged to ES?
– ookboy24
Nov 13 '18 at 4:48












nlog configuration. Rule in configuration section to write log " <logger name="*" minLevel="Info" writeTo="elk" enabled="true" />" Data is logged using following code: var theEvent= new LogEventInfo( logLevel,this.logger.Name,activityInfo.LogMessage // The message to log. ); theEvent.Properties[APPLICATION_NAME] = applicationName; theEvent.Properties[ACTIVITY_NAME] = activityInfo.ActivityName; this.logger.Log (theEvent);
– Neha Srivastava
Nov 13 '18 at 6:41




nlog configuration. Rule in configuration section to write log " <logger name="*" minLevel="Info" writeTo="elk" enabled="true" />" Data is logged using following code: var theEvent= new LogEventInfo( logLevel,this.logger.Name,activityInfo.LogMessage // The message to log. ); theEvent.Properties[APPLICATION_NAME] = applicationName; theEvent.Properties[ACTIVITY_NAME] = activityInfo.ActivityName; this.logger.Log (theEvent);
– Neha Srivastava
Nov 13 '18 at 6:41












1 Answer
1






active

oldest

votes


















0














Try adding the property IncludeAllProperties=true to your target.






share|improve this answer





















  • It didn't work I tried.. I can't find logstash inside my project. Is it possible that logstash configuration is missing hence none of data from application is passed?
    – Neha Srivastava
    Nov 15 '18 at 12:38











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53272531%2fdata-from-web-application-not-getting-passed-to-elasticsearch%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














Try adding the property IncludeAllProperties=true to your target.






share|improve this answer





















  • It didn't work I tried.. I can't find logstash inside my project. Is it possible that logstash configuration is missing hence none of data from application is passed?
    – Neha Srivastava
    Nov 15 '18 at 12:38
















0














Try adding the property IncludeAllProperties=true to your target.






share|improve this answer





















  • It didn't work I tried.. I can't find logstash inside my project. Is it possible that logstash configuration is missing hence none of data from application is passed?
    – Neha Srivastava
    Nov 15 '18 at 12:38














0












0








0






Try adding the property IncludeAllProperties=true to your target.






share|improve this answer












Try adding the property IncludeAllProperties=true to your target.







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 15 '18 at 2:11









JAZ

50639




50639












  • It didn't work I tried.. I can't find logstash inside my project. Is it possible that logstash configuration is missing hence none of data from application is passed?
    – Neha Srivastava
    Nov 15 '18 at 12:38


















  • It didn't work I tried.. I can't find logstash inside my project. Is it possible that logstash configuration is missing hence none of data from application is passed?
    – Neha Srivastava
    Nov 15 '18 at 12:38
















It didn't work I tried.. I can't find logstash inside my project. Is it possible that logstash configuration is missing hence none of data from application is passed?
– Neha Srivastava
Nov 15 '18 at 12:38




It didn't work I tried.. I can't find logstash inside my project. Is it possible that logstash configuration is missing hence none of data from application is passed?
– Neha Srivastava
Nov 15 '18 at 12:38


















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53272531%2fdata-from-web-application-not-getting-passed-to-elasticsearch%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Bressuire

Vorschmack

Quarantine