1

We are looking to continuously run server side trace on Analysis Services and record its output in a table in database in the Database Services.

There are tons of articles showing server side trace for Database Services but I have yet to find one for Analysis Services.

Any suggestions on where to start recording and automating server-side traces for Analysis Services to run always?

asked Jun 18, 2021 at 17:51

2 Answers 2

1

maybe you can setup the query log in the ssas instance properties.

enter image description here

answered Jun 18, 2021 at 18:22
1
  • Thanks, I will look into this. As I keep reading about tracing, would Extended Events help to run server side tracing on analysis services? Commented Jun 18, 2021 at 18:55
0

It depends on what kind of data you want to Capture.

I've just set up tracing as @MBuschi has suggested, but IMO it's pretty limited. To enable it I reccomend you create a small database for it to write to, and change the flag show above for "CreateQueryLogTable" to true. You also need to provide the connection string to your logging location, and the login you provide needs enough credentials to create the table. Then just restart SSAS. It should create the table and start logging for you. Here's the offical doco

I've also been playing with Extended events, and learned how to start and stop a session via script. Extended events give you a lot of configuration flexiblity to target specific technical details.

The most useful thing i've found so far are the flight recorder files stored in your SSAS Data or log directory. (Maybe I just prefer the layout of them). However these files overwrite themselves. So although they are useful for diagnosis, they're not ideal for long term logging.

answered Jul 21, 2021 at 4:05

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.