Comments (10)
For seq you can download the latest release if you plan to run it on > Windows 7.
The Seq 4.x versions will work on older OS's
from servicestack-seq-requestlogsfeature.
Thanks for the quick response. I have ServiceStack v3.9.71 and installed latest SEQ. tried with multiple versions. I added this line to Host Plugins.Add(new SeqRequestLogsFeature("http://localhost:5341"));
Do I need to do anything else in order this to work?
from servicestack-seq-requestlogsfeature.
No that should be all that is required.
The plugin creates json from the requests and sends it to the seq ingestion url both of which haven't had breaking changes since Seq version 3 IIRC.
The seq server should not force SSL if you are using the url above and it should also not require ApiKey's for all logged events. You'll find this in the Seq admin UI.
from servicestack-seq-requestlogsfeature.
I don't have any errors or traffic going to http://localhost:5341 I checked with fiddler. Can I call explicitly into that Logger?
from servicestack-seq-requestlogsfeature.
The plugin registers an instance of IRequestLogger
in the container.
Using that instance, you can call the Log method directly.
from servicestack-seq-requestlogsfeature.
from servicestack-seq-requestlogsfeature.
I debug your code and get to issue with serializing Json before sending to Seq.
"{0}/api/events/raw".Fmt(seqUrl).PostJsonToUrl(
new SeqLogRequest(requestLogEntry),
request => request.Headers.Add("X-Seq-ApiKey", apiKey));
from servicestack-seq-requestlogsfeature.
That was due to our property ServiceStack.Text.JsConfig.EmitCamelCaseNames = true;
from servicestack-seq-requestlogsfeature.
Here is my fix in case you want to update your V3 library:
I have to switch to use https://www.newtonsoft.com/json and HttpClient
instead for ServiceStack.Text.Json
Task.Run(async () =>
{
var client = new HttpClient();
client.DefaultRequestHeaders.Add("X-Seq-ApiKey", apiKey);
var requestBody = JsonConvert.SerializeObject(new { events = new SeqRequestLogEntry[1]{ requestLogEntry } }, new JsonSerializerSettings
{
ContractResolver = new DefaultContractResolver()
});
var httpRequestMessage = new HttpRequestMessage(new HttpMethod("POST"), $"{seqUrl}/api/events/raw")
{
Content = new StringContent(requestBody, Encoding.UTF8, "application/json")
};
await client.SendAsync(httpRequestMessage);
});
}
from servicestack-seq-requestlogsfeature.
newer versions use JSConfig scopes. v3 doesn't have scopes and that branch is not maintained. Glad you were able to get it working. 👍
from servicestack-seq-requestlogsfeature.
Related Issues (11)
- option to filter RawHttpHandler requests HOT 3
- can i log sql query with single request log? HOT 1
- Version v4.0.86 is no more compatible with ServiceStack.Server v5.1 HOT 1
- Nuget package 4.0.86 still only has net452 HOT 1
- The version should be all right, but the following error occurred. HOT 2
- Question: How can I add an enricher to your plugin? HOT 1
- Disable requestBodyTracking when upload file in .net core
- SeqRequestLogsFeature does not work with ServiceStack v5.9
- Add batching to seq http posts
- Package will not install HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from servicestack-seq-requestlogsfeature.