You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just follow the guide from https://nbomber.com/docs/using-nbomber/basic-api/logger & try to run NBomber with the expectation to get log from Elastic Search, but can't get later. There're some my steps (everything is on my local PC): 1/ Preparation & Execution: a/ Install Elastic Search & Kibana on my PC (Windows 10) & can access successfully:
b/ Create a C# Project with sample code below & run:
`using System;
using System.Threading.Tasks;
using System.Net.Http;
using NBomber.CSharp;
using NBomber;
using NBomber.Contracts;
using System.Diagnostics;
using System.IO;
using Serilog;
namespace MyLoadTest
{
class Program
{
static void Main(string[] args)
{
using var httpClient = new HttpClient();
var scenario = Scenario.Create("hello_world_scenario", async context =>
{
var response = await httpClient.GetAsync("https://nbomber.com");
return response.IsSuccessStatusCode
? Response.Ok()
: Response.Fail();
2/ Observe the result: a/ From Visual Console: ==> Passed with 3 threads done b/ From Elastic side: try to input some things as below & can't get the execution result as a/
Ex:
GET /nbomber-*/_search
Please help me via the case, I'm just a new comer in NBomber & curious with elastic search base on limitation knowledge.
If there are any mistakes in my description, please sympathize & let me know.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I just follow the guide from https://nbomber.com/docs/using-nbomber/basic-api/logger & try to run NBomber with the expectation to get log from Elastic Search, but can't get later. There're some my steps (everything is on my local PC):
1/ Preparation & Execution:
a/ Install Elastic Search & Kibana on my PC (Windows 10) & can access successfully:
b/ Create a C# Project with sample code below & run:
`using System;
using System.Threading.Tasks;
using System.Net.Http;
using NBomber.CSharp;
using NBomber;
using NBomber.Contracts;
using System.Diagnostics;
using System.IO;
using Serilog;
namespace MyLoadTest
{
class Program
{
static void Main(string[] args)
{
using var httpClient = new HttpClient();
var scenario = Scenario.Create("hello_world_scenario", async context =>
{
var response = await httpClient.GetAsync("https://nbomber.com");
return response.IsSuccessStatusCode
? Response.Ok()
: Response.Fail();
}`
2/ Observe the result:
a/ From Visual Console: ==> Passed with 3 threads done
b/ From Elastic side: try to input some things as below & can't get the execution result as a/
Ex:
Please help me via the case, I'm just a new comer in NBomber & curious with elastic search base on limitation knowledge.
If there are any mistakes in my description, please sympathize & let me know.
Thanks & Really appreciate your contribution
Beta Was this translation helpful? Give feedback.
All reactions