title: How to retrieve IIS log parameter value [Parameter name: Service Name and Instance Number (s-sitename)] from HttpContext object
body: <p>I want to write access log for my application similar to IIS access log<br>
  (e.g IIS log file Path: "C:\inetpub\logs\LogFiles\W3SVC1\u_ex190422.log") using .net core.  </p>
  
  <p>For below fields I am able to retrieve information from HttpContext object  </p>
  
  <ul>
  <li>URI Stem(cs-uri-stem)</li>
  <li>URI Query(cs-uri-query)</li>
  <li>Method(cs-method)  </li>
  </ul>
  
  <p>But I am not able to retrieve information for <strong>"Service Name and Instance Number (s-sitename)"</strong>    </p>
  
  <p>Similar question is asked here:<br>
  <a href="https://stackoverflow.com/questions/55794873/retrieve-iis-log-parameter-value-from-http-request-response-object">Retrieve IIS log parameter value from HTTP-Request/Response object</a></p>
  
  <p>How can I do it? </p>
  
  <p>Thanks in advance.</p>