How about the Elastic Search after executed NBomber #589
anhvuong123
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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