Questions tagged [slab]

Semantic Logging Application Block (SLAB) is designed to help .NET developers move from the unstructured logging approach towards the strongly-typed (semantic) logging approach, making it easier to consume logging information, especially when there is a large volume of log data to be analyzed.

Semantic Logging Application Block (SLAB) is designed by the Microsoft patterns & practices team to help .NET developers move from the unstructured logging approach towards the strongly-typed (semantic) logging approach, making it easier to consume logging information, especially when there is a large volume of log data to be analyzed. When used out-of-process, the Semantic Logging Application Block uses Event Tracing for Windows (ETW), a fast, lightweight, strongly typed, extensible logging system that is built into the Windows operating system.

The Semantic Logging Application Block enables you to use the EventSource class and semantic log messages in your applications without moving away from the log formats you are familiar with (such as database, text file, Windows Azure table storage). Importantly, you do not need to commit to how you consume events when developing business logic; you have a unified application-specific API for logging and then you can decide later whether you want those events to go to ETW or alternative destinations.

25 questions
5
votes
2 answers

What is the purpose of last argument of type `IDictionary` in the `EventListener.EnableEvents` method?

I am trying to figure out how the last argument (IDictionary) in the method EventListener.EnableEvents(EventSource, EventLevel, EventKeywords, IDictionary) affects the behavior of the method. I have checked the MSDN…
Galkin
  • 672
  • 2
  • 9
  • 22
4
votes
1 answer

Use of undefined keyword value 0x1 for event ApplicationStarted. in EnterpriseLibrary SLAB

I am using Enterprise Library SLAB for Logging but always since coupel of days I am getting error Use of undefined keyword value 0x1 for event ApplicationStarted. It is compiling fine but throwing runtime error just when we try to enable log…
Abhi
  • 5,231
  • 14
  • 71
  • 125
2
votes
3 answers

Linux slab allocator and cache performance

From the guide understanding linux kernel 3rd edition, chapter 8.2.10, Slab coloring- We know from Chapter 2 that the same hardware cache line maps many different blocks of RAM. In this chapter, we have also seen that objects of the same size end…
user2162550
  • 3,540
  • 6
  • 23
  • 39
2
votes
2 answers

Semantic Logging IsEnabled si always false?

I'm using SLAB out-of-process to log ETW events in my applications. Today I have a problem within WCF services hosted Under WcfTestClient.exe When I put breakpoint into WriteEvent methods of my EventSource inherited class, IsEnabled() return false…
E.T.
  • 31
  • 6
2
votes
3 answers

Is it possible to get SLAB working with Microsoft.Diagnostics.Tracing.EventSource?

The official release notes say: Improved compatibility with the EventSource nuget package SLAB's source must be updated and rebuilt to work with the EventSource nuget package (which supports channels, but does not support sampling). The process…
Benjol
  • 57,639
  • 51
  • 180
  • 252
2
votes
1 answer

"EventSourceException" with no details on every log, but the log itself still comes through

So I'm using SLAB and I have a Database listener logging out to a database. I'm testing with a single method on the event source. The issue that I'm having is that the log is being inserted into the database just as I want it, but I'm also getting…
Sinaesthetic
  • 9,847
  • 25
  • 95
  • 165
2
votes
2 answers

Semantic Logging Out-Of-Process ElasticSearch Configuration

I am trying to get ElasticSearch configured correctly with ETW/Out-Of-Process logging. I have successfully installed the latest version of the Out-Of-Process logger and followed the steps outlined on the SLAB site. My SemanticLogging-svc.xml looks…
ohlando
  • 301
  • 1
  • 7
2
votes
2 answers

How to store the payload in separate columns using the Semantic Logging Application Block's SqlDatabaseSink

How can the SqlDatabaseSink store the payload in separate columns? It's mentioned in the documentation, but I haven't seen it done anywhere. When I've tried, the payload is always stored as a JSON string. Any ideas? Source: Developing event…
2
votes
1 answer

Semantic Logging Application Block on Azure web role

I am planning use Semantic Logging Application Block in Web API hosted on Azure Web Role. I am planning to extend event source and create few event sources of mine. I want to make sure that this component SLAB + Custom Event Source works properly on…
user3863695
  • 113
  • 1
  • 6
1
vote
1 answer

slab classes and memory allocation in memcached

I recently started going through memcached source code and i came across this structure. Based on my understanding, there are approximately 64 slabs and and each slab represents a unique chunk size. If we took the first slab class ( size 80 , say )…
arkham knight
  • 363
  • 2
  • 15
1
vote
1 answer

OpCode is being attached to event name in out-of-process Semantic logging (SALB) c#

I am doing an out-of-process semantic logging with elastic search. When i browsed the events using kibana, i could see the events are coming. But the event name showing as "Event name + OpCode". That is events OpCode is being attached to the Event…
Binu Vijayan
  • 723
  • 1
  • 7
  • 20
1
vote
1 answer

SLAB stops receiving events from Windows Service

I have a Windows Service (myService) writing ETW events. When I start the service I'm able to see the logs written to file when SLAB Service (slabService) listens to the events. After a few days slabService stops writing events. I don't think SLAB…
Arturo Martinez
  • 3,436
  • 1
  • 17
  • 32
1
vote
1 answer

Can I replace SLAB one-method-per-event with types?

Examples for SLAB tend to look like this: MyCompanyEventSource.Log.ScalingRequestSubmitted( request.RoleName, request.InstanceCount, context.RuleName, context.CurrentInstanceCount); I don't like that I have to edit…
Nathan Cooper
  • 5,499
  • 4
  • 32
  • 60
1
vote
2 answers

How can I track the source of exception on trying to set Azure sink for a listener

I'm trying to use Semantic Logging Application Block to store logs into Azure Table Storage. Setup: ObservableEventListener listener1 = new ObservableEventListener(); var conString = …
cassandrad
  • 3,008
  • 23
  • 45
1
vote
2 answers

Why SLAB SqlDatabaseSink stopped writing to Traces table?

SLAB SqlDatabaseSink stopped writing to Traces table I added a FlatFileSink in parallel to make sure the listener is not the issue, which writes fine to a file. I also have a Unit Test for the SqlDatabaseSink which works fine, but when subscribing…
siliond
  • 83
  • 8
1
2