<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Splunk for BlueCoat app problem in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Splunk-for-BlueCoat-app-problem/m-p/95181#M24575</link>
    <description>&lt;P&gt;I think I finally got it working correctly &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; It seems that the transforms.conf file in the Splunk for BlueCoat app is wrong.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Original transforms.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[delimExtractions]
DELIMS=" "
FIELDS="date","time","time_taken","dvc_ip","user","user_group","x_exception_id","filter_result","category","http_referrer","holder","http_response","action","http_method","http_content_type","uri_scheme","dest_host","dest_port","uri_path","uri_query","uri_extension","http_user_agent","src_ip","sc_bytes","cs_bytes","x_virus_id"

[nullPound]
REGEX = ^\#
DEST_KEY=queue
FORMAT=nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;When I switch "dvc_ip" and "src_ip" in the above, all graphs are correctly displayed.
According to the Blue Coat documentation ("SGOS Volume 8: Access Logging"), "src_ip" is actully the 4th field and "dvc_ip" is the 4th last field.&lt;/P&gt;

&lt;P&gt;After copying the default transforms.conf file to the local directory and changing it like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[delimExtractions]
DELIMS=" "
FIELDS="date","time","time_taken","src_ip","user","user_group","x_exception_id","filter_result","category","http_referrer","holder","http_response","action","http_method","http_content_type","uri_scheme","dest_host","dest_port","uri_path","uri_query","uri_extension","http_user_agent","dvc_ip","sc_bytes","cs_bytes","x_virus_id"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;everything works.&lt;/P&gt;</description>
    <pubDate>Wed, 01 Dec 2010 19:44:42 GMT</pubDate>
    <dc:creator>laurensv</dc:creator>
    <dc:date>2010-12-01T19:44:42Z</dc:date>
    <item>
      <title>Splunk for BlueCoat app problem</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-for-BlueCoat-app-problem/m-p/95174#M24568</link>
      <description>&lt;P&gt;I'm currently sending BlueCoat logs in W3C ELFF format to Splunk. I've also installed the latest Splunk for Blue Coat app.&lt;/P&gt;

&lt;P&gt;However, it seems that log fields are not extracted correctly. None of the fields in the Dashboard show the correct field. For instance, the Top Websites shows "application/x-www-form-urlencoded;%20charset=utf-8" and "application/soap+msbin1" as the top 2 sites...&lt;/P&gt;

&lt;P&gt;All logs have 39 fields which are separated by a space (" "). The fields are: date time time-taken c-ip sc-status s-action sc-bytes cs-bytes cs-method cs-uri-scheme cs-host cs-uri-path cs-uri-query cs-username s-hierarchy s-supplier-name cs(Content-Type) cs(User-Agent) sc-filter-result sc-filter-category x-virus-id s-ip s-sitename sc(Content-Encoding) x-bluecoat-release-version s-icap-info s-icap-status x-exception-reason x-exception-sourcefile x-virus-details x-icap-error-code x-icap-error-details cs-uri-stem cs-auth-group cs-auth-type x-cs-user-authorization-name sc-auth-status rs(Content-Type) rs(Content-Encoding).&lt;/P&gt;

&lt;P&gt;However, the field "cs(User-Agent)" contains spaces and starts with a " and ends with a ". Between those 2 characters, there can be spaces.&lt;/P&gt;

&lt;P&gt;The regex in the Splunk for BlueCoat app is the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[mainExtractions] REGEX = \d+-\d+-\d+\s\d+:\d+:\d+\s(?&amp;lt;time_taken&amp;gt;\d+)\s(?&amp;lt;c_ip&amp;gt;\d+.\d+.\d+.\d+)\s(?&amp;lt;sc_status&amp;gt;[^\s]+)\s(?&amp;lt;s_action&amp;gt;[^\s]+)\s(?&amp;lt;sc_bytes&amp;gt;[^\s]+)\s(?&amp;lt;cs_method&amp;gt;[^\s]+)\s\"(?&amp;lt;cs_uri_scheme&amp;gt;[^\s]+)\"\s(?&amp;lt;cs_host&amp;gt;[^\s]+)\s+(?&amp;lt;cs_uri_port&amp;gt;[^\s]+)\s(?&amp;lt;cs_uri_path&amp;gt;[^\s]+)\s(?&amp;lt;cs_uri_query&amp;gt;[^\s]+)\s(?&amp;lt;cs_username&amp;gt;[^\s]+)\s(?&amp;lt;cs_auth_group&amp;gt;[^\s]+)\s(?&amp;lt;s_hierarchy&amp;gt;[^\s]+)\s(?&amp;lt;s_supplier_name&amp;gt;[^\s]+)\s(?&amp;lt;rs_content_type&amp;gt;[^\s]+)\s(?&amp;lt;cs_referer&amp;gt;[^\s]+)\s(?&amp;lt;cs_UserAgent&amp;gt;[^\s]+)\s\"(?&amp;lt;sc_filter_result&amp;gt;.*)\"\s(?&amp;lt;cs_categories&amp;gt;[^\s]+)\s(?&amp;lt;x_virus_id&amp;gt;[^\s]+)\s(?&amp;lt;s_ip&amp;gt;[^\s]+)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I think it doesn't correctly filter the " around the cs_UserAgent. Can anyone help with this?&lt;/P&gt;</description>
      <pubDate>Fri, 26 Nov 2010 21:45:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-for-BlueCoat-app-problem/m-p/95174#M24568</guid>
      <dc:creator>laurensv</dc:creator>
      <dc:date>2010-11-26T21:45:38Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk for BlueCoat app problem</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-for-BlueCoat-app-problem/m-p/95175#M24569</link>
      <description>&lt;P&gt;Instead of using the Regex, I am actually using the delimeters option which I find it to be much easier to configure.&lt;/P&gt;

&lt;P&gt;This is an example of how mine looks like. You will need to change the delimters accordingly in the transforms.conf to match what you are outputting from your Bluecoat. &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;props.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[bcoat_proxysg]
TRANSFORM-main=nullPound
REPORT-main=delimExtractions
SHOULD_LINEMERGE=false
TIME_FORMAT=%Y-%m-%d %T
MAX_TIMESTAMP_LOOKAHEAD=19
KV_MODE = none
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;transforms.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[delimExtractions]
DELIMS=" "
FIELDS="date","time","time_taken","dvc_ip","user","user_group","x_exception_id","filter_result","category","http_referrer","holder","http_response","action","http_method","http_content_type","uri_scheme","dest_host","dest_port","uri_path","uri_query","uri_extension","http_user_agent","src_ip","sc_bytes","cs_bytes","x_virus_id"

[nullPound]
REGEX = ^\#
DEST_KEY=queue
FORMAT=nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 26 Nov 2010 23:28:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-for-BlueCoat-app-problem/m-p/95175#M24569</guid>
      <dc:creator>silvermail</dc:creator>
      <dc:date>2010-11-26T23:28:05Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk for BlueCoat app problem</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-for-BlueCoat-app-problem/m-p/95176#M24570</link>
      <description>&lt;P&gt;How do you correctly filter out the User-Agent field?  Like I said in my post above, the User-Agent field is everything between the 2 double quotes ("Mozilla 4.5 whatever") and that doesn't get filtered correctly if you use a space as delimiter as you can have multiple words between the double quotes with spaces...&lt;/P&gt;

&lt;P&gt;Which log format are you using on your BlueCoat?&lt;/P&gt;</description>
      <pubDate>Mon, 29 Nov 2010 04:36:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-for-BlueCoat-app-problem/m-p/95176#M24570</guid>
      <dc:creator>laurensv</dc:creator>
      <dc:date>2010-11-29T04:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk for BlueCoat app problem</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-for-BlueCoat-app-problem/m-p/95177#M24571</link>
      <description>&lt;P&gt;Silvermail, how are you sending the logs from the Blue Coat to Splunk and in which format?&lt;/P&gt;</description>
      <pubDate>Wed, 01 Dec 2010 16:09:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-for-BlueCoat-app-problem/m-p/95177#M24571</guid>
      <dc:creator>laurensv</dc:creator>
      <dc:date>2010-12-01T16:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk for BlueCoat app problem</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-for-BlueCoat-app-problem/m-p/95178#M24572</link>
      <description>&lt;P&gt;Ok, I've found the issue. The log format should be "bcreportermain_v1". After changing that, everything works!&lt;/P&gt;</description>
      <pubDate>Wed, 01 Dec 2010 16:35:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-for-BlueCoat-app-problem/m-p/95178#M24572</guid>
      <dc:creator>laurensv</dc:creator>
      <dc:date>2010-12-01T16:35:33Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk for BlueCoat app problem</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-for-BlueCoat-app-problem/m-p/95179#M24573</link>
      <description>&lt;P&gt;Hmmm, still not working correctly... When I go to "Dashboards" -&amp;gt; "Traffic Dashboard", the "Top Websites" and "Top Clients" are still wrong &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Anybody running Splunk for BlueCoat 100% correctly? &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Dec 2010 17:11:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-for-BlueCoat-app-problem/m-p/95179#M24573</guid>
      <dc:creator>laurensv</dc:creator>
      <dc:date>2010-12-01T17:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk for BlueCoat app problem</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-for-BlueCoat-app-problem/m-p/95180#M24574</link>
      <description>&lt;P&gt;Can you post the header and a few lines from your logs, as well as your transforms.conf? Probably the field-extractions naming is a bit different and that is why you are not getting the dashboards.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Dec 2010 17:17:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-for-BlueCoat-app-problem/m-p/95180#M24574</guid>
      <dc:creator>silvermail</dc:creator>
      <dc:date>2010-12-01T17:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk for BlueCoat app problem</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-for-BlueCoat-app-problem/m-p/95181#M24575</link>
      <description>&lt;P&gt;I think I finally got it working correctly &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; It seems that the transforms.conf file in the Splunk for BlueCoat app is wrong.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Original transforms.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[delimExtractions]
DELIMS=" "
FIELDS="date","time","time_taken","dvc_ip","user","user_group","x_exception_id","filter_result","category","http_referrer","holder","http_response","action","http_method","http_content_type","uri_scheme","dest_host","dest_port","uri_path","uri_query","uri_extension","http_user_agent","src_ip","sc_bytes","cs_bytes","x_virus_id"

[nullPound]
REGEX = ^\#
DEST_KEY=queue
FORMAT=nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;When I switch "dvc_ip" and "src_ip" in the above, all graphs are correctly displayed.
According to the Blue Coat documentation ("SGOS Volume 8: Access Logging"), "src_ip" is actully the 4th field and "dvc_ip" is the 4th last field.&lt;/P&gt;

&lt;P&gt;After copying the default transforms.conf file to the local directory and changing it like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[delimExtractions]
DELIMS=" "
FIELDS="date","time","time_taken","src_ip","user","user_group","x_exception_id","filter_result","category","http_referrer","holder","http_response","action","http_method","http_content_type","uri_scheme","dest_host","dest_port","uri_path","uri_query","uri_extension","http_user_agent","dvc_ip","sc_bytes","cs_bytes","x_virus_id"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;everything works.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Dec 2010 19:44:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-for-BlueCoat-app-problem/m-p/95181#M24575</guid>
      <dc:creator>laurensv</dc:creator>
      <dc:date>2010-12-01T19:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk for BlueCoat app problem</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-for-BlueCoat-app-problem/m-p/95182#M24576</link>
      <description>&lt;P&gt;Silvermail, can you confirm your setup? (log format etc...)&lt;/P&gt;</description>
      <pubDate>Wed, 01 Dec 2010 19:45:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-for-BlueCoat-app-problem/m-p/95182#M24576</guid>
      <dc:creator>laurensv</dc:creator>
      <dc:date>2010-12-01T19:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk for BlueCoat app problem</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-for-BlueCoat-app-problem/m-p/95183#M24577</link>
      <description>&lt;P&gt;My transforms.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[delimExtractions]
DELIMS=" "
FIELDS="date","time","time_taken","src_ip","user","user_group","x_exception_id","filter_result","category","http_referrer","holder","http_response","action","http_method","http_content_type","uri_scheme","dest_host","dest_port","uri_path","uri_query","uri_extension","http_user_agent","dvc_ip","sc_bytes","cs_bytes","x_virus_id"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Example log files:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2010-11-26 11:28:55 113 x.x.x.x 200 TCP_NC_MISS 42168 1691 POST https the.web.site /ProcessLegend.aspx - - DEFAULT_PARENT fqdn.host.name application/x-www-form-urlencoded;%20charset=utf-8 "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C)" OBSERVED none - x.x.x.x SG-HTTPS-Reverse-Proxy-Service - 5.5.3.1 - ICAP_NOT_SCANNED "-" - - - - &lt;A href="https://the.web.site/ProcessLegend.aspx" target="test_blank"&gt;https://the.web.site/ProcessLegend.aspx&lt;/A&gt; - - - - text/html;%20charset=utf-8 -

2010-11-26 11:28:31 109 x.x.x.x 200 TCP_NC_MISS 562 491 POST http another.web.site /Blablabla.svc - - DEFAULT_PARENT another.host.name application/soap+msbin1 - OBSERVED none - x.x.x.x SG-HTTP-Service - 5.5.3.1 - ICAP_NOT_SCANNED "-" - - - - &lt;A href="http://another.web.site/Blablabla.svc" target="test_blank"&gt;http://another.web.site/Blablabla.svc&lt;/A&gt; - - - - application/soap+msbin1 -
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Edited of course &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Dec 2010 00:15:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-for-BlueCoat-app-problem/m-p/95183#M24577</guid>
      <dc:creator>laurensv</dc:creator>
      <dc:date>2010-12-03T00:15:44Z</dc:date>
    </item>
  </channel>
</rss>

