<?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: Hunk - assigning sourcetype in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Hunk-assigning-sourcetype/m-p/136423#M28114</link>
    <description>&lt;P&gt;That worked. Just had to change the search to:&lt;/P&gt;

&lt;P&gt;index="web_logs" source="/logs/web/ex140401.log"&lt;/P&gt;

&lt;P&gt;Once I did that, I got an "Interesting Fields" list, with the parsed out fields.&lt;/P&gt;

&lt;P&gt;So that applies to searching individual log files (basically using 'Exploring Data'). How do I apply the new manual-iis to all IIS log files when I go in to search the entire virtual index? When I click 'search' there, the files aren't being parsed per the IIS sourcetype.&lt;/P&gt;

&lt;P&gt;Thx&lt;/P&gt;</description>
    <pubDate>Mon, 01 Dec 2014 21:08:55 GMT</pubDate>
    <dc:creator>jwalzerpitt</dc:creator>
    <dc:date>2014-12-01T21:08:55Z</dc:date>
    <item>
      <title>Hunk - assigning sourcetype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Hunk-assigning-sourcetype/m-p/136401#M28092</link>
      <description>&lt;P&gt;I create two virtual indexes within Hunk that reads from two separate HDFS directory. One is for Cisco ASA logs, and the other is for IIS logs. Each HDFS directory contains a bunch of *.log files. Clicking on 'search' for either index starts to index/read all of the log files, but the sourcetype is set wrong for both indexes.&lt;/P&gt;

&lt;P&gt;How do I assign the correct sourcetype to each index?&lt;/P&gt;

&lt;P&gt;Thx&lt;/P&gt;</description>
      <pubDate>Wed, 26 Nov 2014 15:56:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Hunk-assigning-sourcetype/m-p/136401#M28092</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2014-11-26T15:56:39Z</dc:date>
    </item>
    <item>
      <title>Re: Hunk - assigning sourcetype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Hunk-assigning-sourcetype/m-p/136402#M28093</link>
      <description>&lt;P&gt;After some additional review, for the IIS logs I see they're being tagged as a sourcetype of IIS, but they're not being parsed correctly. Any ideas on how to troubleshoot that issue?&lt;/P&gt;

&lt;P&gt;The Cisco ASA logs aren't being identified as the correct sourcetype at all.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Nov 2014 16:37:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Hunk-assigning-sourcetype/m-p/136402#M28093</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2014-11-26T16:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: Hunk - assigning sourcetype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Hunk-assigning-sourcetype/m-p/136403#M28094</link>
      <description>&lt;P&gt;Try this option - in props.conf use the source:: and HDFS location :&lt;/P&gt;

&lt;P&gt;Go to /hunk/etc/apps/search/local -&amp;gt; Create props.conf&lt;/P&gt;

&lt;P&gt;[source::/user/xyz/ciscologfiles/...]&lt;BR /&gt;
sourcetype = cisco_syslog&lt;/P&gt;

&lt;P&gt;[source::/user/xyz/iislogfiles/...]&lt;BR /&gt;
sourcetype = iis&lt;/P&gt;</description>
      <pubDate>Wed, 26 Nov 2014 17:38:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Hunk-assigning-sourcetype/m-p/136403#M28094</guid>
      <dc:creator>rdagan_splunk</dc:creator>
      <dc:date>2014-11-26T17:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: Hunk - assigning sourcetype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Hunk-assigning-sourcetype/m-p/136404#M28095</link>
      <description>&lt;P&gt;Thx for the reply and info. &lt;/P&gt;

&lt;P&gt;Created a props.conf file, which now reads:&lt;/P&gt;

&lt;P&gt;[source::hdfs://hostname:8020/logs/firewall] sourcetype = cisco_syslog&lt;BR /&gt;
[source::hdfs://hostname:8020/logs/web] sourcetype = iis&lt;/P&gt;

&lt;P&gt;Restarted splunk and when I search on IIS or the ASA logs, they're still not parsing correctly&lt;/P&gt;</description>
      <pubDate>Wed, 26 Nov 2014 18:36:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Hunk-assigning-sourcetype/m-p/136404#M28095</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2014-11-26T18:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: Hunk - assigning sourcetype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Hunk-assigning-sourcetype/m-p/136405#M28096</link>
      <description>&lt;P&gt;You need to remove the "hdfs://hostname:8020" part from the stanza, ie try replacing them with the following verbatim (no need to restart)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::/logs/firewall/...] 
sourcetype = cisco_syslog

[source::/logs/web/...] 
sourcetype = iis
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 26 Nov 2014 18:42:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Hunk-assigning-sourcetype/m-p/136405#M28096</guid>
      <dc:creator>Ledion_Bitincka</dc:creator>
      <dc:date>2014-11-26T18:42:19Z</dc:date>
    </item>
    <item>
      <title>Re: Hunk - assigning sourcetype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Hunk-assigning-sourcetype/m-p/136406#M28097</link>
      <description>&lt;P&gt;Thx. Now reads:&lt;/P&gt;

&lt;P&gt;[source::logs/firewall/...]&lt;BR /&gt;
sourcetype = cisco_syslog&lt;/P&gt;

&lt;P&gt;[source::logs/web/...]&lt;BR /&gt;
sourcetype = iis&lt;/P&gt;

&lt;P&gt;Still not parsing (not seeing source/dst IPs, and so on)&lt;/P&gt;</description>
      <pubDate>Wed, 26 Nov 2014 18:53:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Hunk-assigning-sourcetype/m-p/136406#M28097</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2014-11-26T18:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: Hunk - assigning sourcetype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Hunk-assigning-sourcetype/m-p/136407#M28098</link>
      <description>&lt;P&gt;What are the events being sourcetyped as by Hunk? &lt;/P&gt;</description>
      <pubDate>Wed, 26 Nov 2014 19:02:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Hunk-assigning-sourcetype/m-p/136407#M28098</guid>
      <dc:creator>Ledion_Bitincka</dc:creator>
      <dc:date>2014-11-26T19:02:02Z</dc:date>
    </item>
    <item>
      <title>Re: Hunk - assigning sourcetype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Hunk-assigning-sourcetype/m-p/136408#M28099</link>
      <description>&lt;P&gt;The IIS logs are being tagged correctly (sourcetype = iis), where as the Cisco ASA logs have no sourcetype associated with them at all.&lt;/P&gt;

&lt;P&gt;If I go the 'Explore Data' route and select sourcetype = iis the preview data screen shows the logs being parsed correctly, but once I save and then search the fields aren't parsed like they should be.&lt;/P&gt;

&lt;P&gt;When I do 'Explore Data' re: Cisco,  I set the sourcetype to cisco:asa, but preview data screen doesn't show the ASA logs being parsed as they should. I can switch between System Defaults, Syslog, and cisco:asa and the files never change how they're parsed. &lt;/P&gt;</description>
      <pubDate>Wed, 26 Nov 2014 19:09:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Hunk-assigning-sourcetype/m-p/136408#M28099</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2014-11-26T19:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: Hunk - assigning sourcetype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Hunk-assigning-sourcetype/m-p/136409#M28100</link>
      <description>&lt;P&gt;Looking at your stanzas again you seem to be missing the leading / in both of them - can you please add that?&lt;/P&gt;

&lt;P&gt;As for the iis logs being sourcetyped correctly but not being parsed properly, it seems like the root cause here is that iis log parsing uses index time rules which are not usable in Hunk - here's how the iis sourcetype is defined.  Can you post the first few lines (anonimized) of the iis log files?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[iis]
pulldown_type = true
MAX_TIMESTAMP_LOOKAHEAD = 32
SHOULD_LINEMERGE = False
INDEXED_EXTRACTIONS = w3c
detect_trailing_nulls = auto
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 26 Nov 2014 19:51:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Hunk-assigning-sourcetype/m-p/136409#M28100</guid>
      <dc:creator>Ledion_Bitincka</dc:creator>
      <dc:date>2014-11-26T19:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: Hunk - assigning sourcetype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Hunk-assigning-sourcetype/m-p/136410#M28101</link>
      <description>&lt;P&gt;Fixed props.conf to:&lt;/P&gt;

&lt;P&gt;[source::/logs/firewall/...]&lt;BR /&gt;
sourcetype = cisco_syslog&lt;/P&gt;

&lt;P&gt;[source::/logs/web/...]&lt;BR /&gt;
sourcetype = iis&lt;/P&gt;

&lt;P&gt;[source::/logs/web/ex140401.log]&lt;BR /&gt;
sourcetype = iis&lt;/P&gt;</description>
      <pubDate>Wed, 26 Nov 2014 20:06:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Hunk-assigning-sourcetype/m-p/136410#M28101</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2014-11-26T20:06:51Z</dc:date>
    </item>
    <item>
      <title>Re: Hunk - assigning sourcetype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Hunk-assigning-sourcetype/m-p/136411#M28102</link>
      <description>&lt;P&gt;anonimized iis log files:&lt;/P&gt;

&lt;P&gt;2014-04-01 04:00:00 W3SVC1 x.x.x.x GET /server.txt - 443 - x.x.x.x - 200 0 0&lt;BR /&gt;
2014-04-01 04:00:00 W3SVC1 x.x.x.x GET /server.txt - 80 - x.x.x.x - 200 0 0&lt;BR /&gt;
2014-04-01 04:00:00 W3SVC1 x.x.x.x GET /server.txt - 80 - x.x.x.x - 200 0 0&lt;BR /&gt;
2014-04-01 04:00:01 W3SVC1 x.x.x.x GET /dir_name/dir_name/dir_name/ImapRedirect.aspx - 443 - x.x.x.x Mozilla/5.0+(Linux;+U;+Android+4.0.4;+en-ca;+MB886+Build/7.7.1Q-115_MB886_BELL_FFW-11)+AppleWebKit/534.30+(KHTML,+like+Gecko)+Version/4.0+Mobile+Safari/534.30 200 0 0&lt;BR /&gt;
2014-04-01 04:00:01 W3SVC1 x.x.x.x GET /favicon.ico - 443 - x.x.x.x Mozilla/5.0+(Linux;+U;+Android+4.0.4;+en-ca;+MB886+Build/7.7.1Q-115_MB886_BELL_FFW-11)+AppleWebKit/534.30+(KHTML,+like+Gecko)+Version/4.0+Mobile+Safari/534.30 404 0 2&lt;BR /&gt;
2014-04-01 04:00:01 W3SVC1 x.x.x.x GET /server.txt - 443 - x.x.x.x - 200 0 0&lt;BR /&gt;
2014-04-01 04:00:02 W3SVC1 x.x.x.x GET /dir_name/dir_name/dir_name/dir_name/Default.aspx - 443 - 96.235.28.93 Mozilla/5.0+(Windows+NT+6.1;+WOW64;+rv:28.0)+Gecko/20100101+Firefox/28.0 302 0 0&lt;BR /&gt;
2014-04-01 04:00:04 W3SVC1 127.0.0.1 POST /dir_name/AuthProviderSoapBinding.asmx - 80 - 127.0.0.1 Plumtree+OpenHTTP+Library+(version+2.0) 200 0 0&lt;BR /&gt;
2014-04-01 04:00:04 W3SVC1 x.x.x.x POST /portal/server.pt - 443 - 24.3.69.132 Mozilla/5.0+(Windows+NT+6.1;+WOW64;+rv:27.0)+Gecko/20100101+Firefox/27.0 302 0 0&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:16:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Hunk-assigning-sourcetype/m-p/136411#M28102</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2020-09-28T18:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: Hunk - assigning sourcetype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Hunk-assigning-sourcetype/m-p/136412#M28103</link>
      <description>&lt;P&gt;Can you also please include the header line that contains the list of fields?  Once you have the fields you should be able to configure parsing using props/transforms.conf to extract the fields &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;props.conf
[source::/logs/web/ex140401.log]
sourcetype = new-iis

[new-iis]
REPORT-manual-iis = manual-iis

transforms.conf
[manual-iis]
FIELDS = &amp;lt;comma delimited list of fields from file header&amp;gt;
DELIMS = " " 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 26 Nov 2014 20:29:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Hunk-assigning-sourcetype/m-p/136412#M28103</guid>
      <dc:creator>Ledion_Bitincka</dc:creator>
      <dc:date>2014-11-26T20:29:49Z</dc:date>
    </item>
    <item>
      <title>Re: Hunk - assigning sourcetype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Hunk-assigning-sourcetype/m-p/136413#M28104</link>
      <description>&lt;P&gt;header line:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;#Fields: date time s-sitename s-ip cs-method cs-uri-stem cs-uri-query    s-port cs-username c-ip    cs(User-Agent) sc-status sc-substatus    sc-win32-status
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 26 Nov 2014 20:34:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Hunk-assigning-sourcetype/m-p/136413#M28104</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2014-11-26T20:34:53Z</dc:date>
    </item>
    <item>
      <title>Re: Hunk - assigning sourcetype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Hunk-assigning-sourcetype/m-p/136414#M28105</link>
      <description>&lt;P&gt;Okay, so give this a try:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; props.conf
 [source::/logs/web/ex140401.log]
 sourcetype = new-iis

 [new-iis]
 REPORT-manual-iis = manual-iis

 transforms.conf
 [manual-iis]
 FIELDS = date, time, s-sitename, s-ip, cs-method, cs-uri-stem, cs-uri-query, s-port, cs-username, c-ip,  cs-user-agent, sc-status, sc-substatus,  sc-win32-status
 DELIMS = " " 
 # if the fields are tab delimited try the following
 #DELIMS = "\t" 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 26 Nov 2014 20:43:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Hunk-assigning-sourcetype/m-p/136414#M28105</guid>
      <dc:creator>Ledion_Bitincka</dc:creator>
      <dc:date>2014-11-26T20:43:21Z</dc:date>
    </item>
    <item>
      <title>Re: Hunk - assigning sourcetype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Hunk-assigning-sourcetype/m-p/136415#M28106</link>
      <description>&lt;P&gt;props.conf now reads:&lt;/P&gt;

&lt;P&gt;[source::/logs/firewall/...]&lt;BR /&gt;
sourcetype = cisco_syslog&lt;/P&gt;

&lt;P&gt;[source::/logs/web/...]&lt;BR /&gt;
sourcetype = iis&lt;/P&gt;

&lt;P&gt;[new-iis]&lt;BR /&gt;
REPORT-manual-iis = manual-iis&lt;/P&gt;

&lt;P&gt;[source::/logs/web/ex140401.log]&lt;BR /&gt;
sourcetype = iis&lt;BR /&gt;
(pleas note - this is added to the file when I do 'Explore Data')&lt;/P&gt;

&lt;P&gt;Do I create the transforms.conf file in /hunk/etc/apps/search/local?&lt;/P&gt;

&lt;P&gt;Thx for all of your help Ledion&lt;/P&gt;</description>
      <pubDate>Wed, 26 Nov 2014 20:55:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Hunk-assigning-sourcetype/m-p/136415#M28106</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2014-11-26T20:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: Hunk - assigning sourcetype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Hunk-assigning-sourcetype/m-p/136416#M28107</link>
      <description>&lt;P&gt;Yes, both (props/transforms) go in $SPLUNK_HOME/etc/apps/search/local/&lt;/P&gt;</description>
      <pubDate>Wed, 26 Nov 2014 20:57:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Hunk-assigning-sourcetype/m-p/136416#M28107</guid>
      <dc:creator>Ledion_Bitincka</dc:creator>
      <dc:date>2014-11-26T20:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: Hunk - assigning sourcetype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Hunk-assigning-sourcetype/m-p/136417#M28108</link>
      <description>&lt;P&gt;Thx - let me add and test again&lt;/P&gt;</description>
      <pubDate>Wed, 26 Nov 2014 20:58:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Hunk-assigning-sourcetype/m-p/136417#M28108</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2014-11-26T20:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: Hunk - assigning sourcetype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Hunk-assigning-sourcetype/m-p/136418#M28109</link>
      <description>&lt;P&gt;props.conf:&lt;/P&gt;

&lt;P&gt;[source::/logs/firewall/...]&lt;BR /&gt;
sourcetype = cisco_syslog&lt;/P&gt;

&lt;P&gt;[source::/logs/web/...]&lt;BR /&gt;
sourcetype = iis&lt;/P&gt;

&lt;P&gt;[new-iis]&lt;BR /&gt;
REPORT-manual-iis = manual-iis&lt;/P&gt;

&lt;P&gt;[source::/logs/web/ex140401.log]&lt;BR /&gt;
sourcetype = iis&lt;/P&gt;

&lt;P&gt;transforms.conf:&lt;/P&gt;

&lt;P&gt;[manual-iis]&lt;BR /&gt;
FIELDS = date, time, s-sitename, s-ip, cs-method, cs-uri-stem, cs-uri-query, s-port, cs-username, c-ip,  cs-user-agent, sc-status, sc-substatus,  sc-win32-status&lt;BR /&gt;
DELIMS = "\t"&lt;/P&gt;

&lt;P&gt;(I tried with DELIMS = " " as well)&lt;/P&gt;

&lt;P&gt;Still not parsing. Anything to be gleaned from the search log?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Nov 2014 21:08:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Hunk-assigning-sourcetype/m-p/136418#M28109</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2014-11-26T21:08:56Z</dc:date>
    </item>
    <item>
      <title>Re: Hunk - assigning sourcetype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Hunk-assigning-sourcetype/m-p/136419#M28110</link>
      <description>&lt;P&gt;And to be safe I restart Splunk after every change&lt;/P&gt;</description>
      <pubDate>Wed, 26 Nov 2014 21:10:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Hunk-assigning-sourcetype/m-p/136419#M28110</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2014-11-26T21:10:45Z</dc:date>
    </item>
    <item>
      <title>Re: Hunk - assigning sourcetype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Hunk-assigning-sourcetype/m-p/136420#M28111</link>
      <description>&lt;P&gt;Please setup the props.conf correctly as below, to wire up transforms correctly:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::/logs/web/ex140401.log]
sourcetype = manual-iis
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 26 Nov 2014 21:38:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Hunk-assigning-sourcetype/m-p/136420#M28111</guid>
      <dc:creator>Ledion_Bitincka</dc:creator>
      <dc:date>2014-11-26T21:38:17Z</dc:date>
    </item>
  </channel>
</rss>

