<?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: How to specify source type for virtual indexes.? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-specify-source-type-for-virtual-indexes/m-p/225611#M44100</link>
    <description>&lt;P&gt;Hi I am looking for some solution that does not depend on props.conf. I already created source type but how could I apply that to virtual index.? That is the question&lt;/P&gt;</description>
    <pubDate>Fri, 15 Jan 2016 11:01:03 GMT</pubDate>
    <dc:creator>sdaruna</dc:creator>
    <dc:date>2016-01-15T11:01:03Z</dc:date>
    <item>
      <title>How to specify source type for virtual indexes.?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-specify-source-type-for-virtual-indexes/m-p/225607#M44096</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have data in HDFS and I am creating Virtual Indexes to access the data. However, I need to make get the whole file content as an event. For that, I have already created one source_type, which will get the whole file data. How can I apply the source_type to virtual indexes.?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 08:22:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-specify-source-type-for-virtual-indexes/m-p/225607#M44096</guid>
      <dc:creator>sdaruna</dc:creator>
      <dc:date>2020-09-29T08:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to specify source type for virtual indexes.?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-specify-source-type-for-virtual-indexes/m-p/225608#M44097</link>
      <description>&lt;P&gt;Splunk documentation to rescue. See this&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Hunk/6.2.5/Hunktutorial/SearchbySourcetype"&gt;http://docs.splunk.com/Documentation/Hunk/6.2.5/Hunktutorial/SearchbySourcetype&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jan 2016 03:16:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-specify-source-type-for-virtual-indexes/m-p/225608#M44097</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-01-14T03:16:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to specify source type for virtual indexes.?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-specify-source-type-for-virtual-indexes/m-p/225609#M44098</link>
      <description>&lt;P&gt;Hi, this documentation which mentions about props.conf does apply the source type to every index. I want it to have only for specific index. &lt;/P&gt;</description>
      <pubDate>Thu, 14 Jan 2016 03:43:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-specify-source-type-for-virtual-indexes/m-p/225609#M44098</guid>
      <dc:creator>sdaruna</dc:creator>
      <dc:date>2016-01-14T03:43:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to specify source type for virtual indexes.?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-specify-source-type-for-virtual-indexes/m-p/225610#M44099</link>
      <description>&lt;P&gt;[source::/home/somepath/twitter/...]&lt;BR /&gt;
priority         = 100&lt;BR /&gt;
sourcetype       = twitter-hadoop&lt;BR /&gt;
SHOULD_LINEMERGE = false&lt;BR /&gt;
DATETIME_CONFIG  = NONE&lt;/P&gt;

&lt;P&gt;[twitter-hadoop]&lt;BR /&gt;
KV_MODE          = json&lt;BR /&gt;
EVAL-_time       = strptime(postedTime, "%Y-%m-%dT%H:%M:%S.%lZ")&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 08:26:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-specify-source-type-for-virtual-indexes/m-p/225610#M44099</guid>
      <dc:creator>rdagan_splunk</dc:creator>
      <dc:date>2020-09-29T08:26:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to specify source type for virtual indexes.?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-specify-source-type-for-virtual-indexes/m-p/225611#M44100</link>
      <description>&lt;P&gt;Hi I am looking for some solution that does not depend on props.conf. I already created source type but how could I apply that to virtual index.? That is the question&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2016 11:01:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-specify-source-type-for-virtual-indexes/m-p/225611#M44100</guid>
      <dc:creator>sdaruna</dc:creator>
      <dc:date>2016-01-15T11:01:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to specify source type for virtual indexes.?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-specify-source-type-for-virtual-indexes/m-p/225612#M44101</link>
      <description>&lt;P&gt;IMO, the sourcetype is applied to a data input or data source, not to an index. Props.conf will allow you to set the sourcetype for a source, which are being stored in virtual index. &lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2016 16:57:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-specify-source-type-for-virtual-indexes/m-p/225612#M44101</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-01-15T16:57:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to specify source type for virtual indexes.?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-specify-source-type-for-virtual-indexes/m-p/225613#M44102</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I might have not mentioned my view properly. &lt;BR /&gt;
Lets say, i have two types of data&lt;/P&gt;

&lt;P&gt;1) JSON&lt;BR /&gt;
2) CSV&lt;BR /&gt;
3) XML.&lt;/P&gt;

&lt;P&gt;I need to get whole file for JSON and XML, and i need to get the data split when reading CSV. CSV Data goes to one index and xml data goes to other. &lt;/P&gt;

&lt;P&gt;In this case, can we get the data shown with their respective requirements.? i.e, get the whole file data for xml and json and splitted data for csv.&lt;/P&gt;

&lt;P&gt;Can we do that with props.conf.?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2016 20:58:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-specify-source-type-for-virtual-indexes/m-p/225613#M44102</guid>
      <dc:creator>sdaruna</dc:creator>
      <dc:date>2016-01-15T20:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to specify source type for virtual indexes.?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-specify-source-type-for-virtual-indexes/m-p/225614#M44103</link>
      <description>&lt;P&gt;For the most part JSON does not need a source type.  Hunk understand that format without any additional work from you.  CSV with a header, also does not require any additional work.&lt;BR /&gt;&lt;BR /&gt;
So, that means only your XML and CSV without Headers will require some additional manipulation in the Props.conf files.&lt;/P&gt;

&lt;P&gt;In your case, are these 3 data types stored in the exact same HDFS directory /user/data/alldata  or do you have /user/data/jsondata  /user/data/xmldata  /user/data/csvdata  ?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2016 21:35:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-specify-source-type-for-virtual-indexes/m-p/225614#M44103</guid>
      <dc:creator>rdagan_splunk</dc:creator>
      <dc:date>2016-01-15T21:35:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to specify source type for virtual indexes.?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-specify-source-type-for-virtual-indexes/m-p/225615#M44104</link>
      <description>&lt;P&gt;Hi rdaga,&lt;/P&gt;

&lt;P&gt;Yes. There is chance that they might have in same directory.&lt;BR /&gt;
Is there any solution if they reside in different directory.?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2016 21:53:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-specify-source-type-for-virtual-indexes/m-p/225615#M44104</guid>
      <dc:creator>sdaruna</dc:creator>
      <dc:date>2016-01-15T21:53:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to specify source type for virtual indexes.?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-specify-source-type-for-virtual-indexes/m-p/225616#M44105</link>
      <description>&lt;P&gt;Same Hadoop directory:&lt;BR /&gt;
[source::/user/data/alldata/*.xml]&lt;BR /&gt;
priority = 100&lt;BR /&gt;
sourcetype = xml-hadoop&lt;/P&gt;

&lt;P&gt;[source::/user/data/alldata/*.csv]&lt;BR /&gt;
priority = 101&lt;BR /&gt;
sourcetype = csv-hadoop&lt;/P&gt;

&lt;P&gt;Different Hadoop directory:&lt;BR /&gt;
[source::/user/data/xmldata/...]&lt;BR /&gt;
priority = 100&lt;BR /&gt;
sourcetype = xml-hadoop&lt;/P&gt;

&lt;P&gt;[source::/user/data/csvdata/...]&lt;BR /&gt;
priority = 101&lt;BR /&gt;
sourcetype = csv-hadoop&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2016 22:03:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-specify-source-type-for-virtual-indexes/m-p/225616#M44105</guid>
      <dc:creator>rdagan_splunk</dc:creator>
      <dc:date>2016-01-15T22:03:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to specify source type for virtual indexes.?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-specify-source-type-for-virtual-indexes/m-p/225617#M44106</link>
      <description>&lt;P&gt;Give this a try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::.../*.xml]
sourcetype=your_xml_sourcetype
priority=100

[source::.../*.csv]
sourcetype=your_csv_sourcetype
priority=100

[source::.../*.json]   *****use the correct extension of the file
sourcetype=your_json_sourcetype
priority=100


[your_csv_sourcetype]
define property per your requirement

[your_xml_sourcetype]
define property per your requirement

[your_json_sourcetype]
define property per your requirement
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 15 Jan 2016 22:04:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-specify-source-type-for-virtual-indexes/m-p/225617#M44106</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-01-15T22:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to specify source type for virtual indexes.?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-specify-source-type-for-virtual-indexes/m-p/225618#M44107</link>
      <description>&lt;P&gt;Thank you somesoni.. I would give it a try and let you know.. Are you splunkr.? if so, is there a way to reach you over mail or so.?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2016 22:06:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-specify-source-type-for-virtual-indexes/m-p/225618#M44107</guid>
      <dc:creator>sdaruna</dc:creator>
      <dc:date>2016-01-15T22:06:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to specify source type for virtual indexes.?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-specify-source-type-for-virtual-indexes/m-p/225619#M44108</link>
      <description>&lt;P&gt;You can identify Splunk employees by the &lt;CODE&gt;[Splunk]&lt;/CODE&gt; after their username - therefore @somesoni2 is no splunkr, but he once was &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2016 21:36:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-specify-source-type-for-virtual-indexes/m-p/225619#M44108</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2016-01-19T21:36:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to specify source type for virtual indexes.?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-specify-source-type-for-virtual-indexes/m-p/225620#M44109</link>
      <description>&lt;P&gt;This technique doen't seem very well documented...  and it looks like splunk prefer you to perform this within a props.conf file.&lt;BR /&gt;
This answer presents people with an option how to do this from the virtual index UI for hadoop provider.&lt;/P&gt;

&lt;P&gt;In the UI, select settings----&amp;gt; virtual indexes.&lt;BR /&gt;
Ensure you have a data provider configured, that works... &lt;BR /&gt;
Then within the virtual indexes menu, create a new virtual index.&lt;/P&gt;

&lt;P&gt;This example is going to use the following folders &lt;BR /&gt;
/data/auditlogs/RHEL_syslog&lt;BR /&gt;
/data/auditlogs/WindowEvents&lt;/P&gt;

&lt;P&gt;Within the UI, an admin should enter the following HDFS path setting:&lt;BR /&gt;
/data/auditlogs/${sourcetype}&lt;/P&gt;

&lt;P&gt;The admin could apply a whitelist if only one of the folder is required to be searched ..&lt;/P&gt;

&lt;P&gt;By applying the ${sourcetype} variable in the UI...  this will be written to a props.conf file...&lt;BR /&gt;
Whenever a search is performed across this virtual index, two sourcetypes should appear.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Oct 2018 10:35:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-specify-source-type-for-virtual-indexes/m-p/225620#M44109</guid>
      <dc:creator>lloydd518</dc:creator>
      <dc:date>2018-10-19T10:35:22Z</dc:date>
    </item>
  </channel>
</rss>

